Sha256: 52fab27272caa32c214da5effaf66c5d1661fceb91d11a3cf2ab4b74cfb53332

Contents?: true

Size: 1.37 KB

Versions: 13

Compression:

Stored size: 1.37 KB

Contents

#if @errors
#  page.replace_html 'comment_errors', :inline => render_errors
#elsif @comment.new_record?
#  page.replace_html "add_comment_form#{@comment.reply_to || ''}", :partial=>'comments/form'
#  page.replace_html "comment_errors#{@comment.reply_to || ''}", :inline=>error_messages_for(:comment, :object => @comment)
#else
#  if @comment.reply_to
#    page.remove "add_comment_form#{@comment.reply_to}"
#    page.insert_html :bottom, "replies_to#{@comment.reply_to}", :partial=>'comments/li', :collection=>[@comment]
#  else
#    page.insert_html :before, "add_comment#{@node.zip}", :partial=>'comments/li', :collection=>[@comment]
#    page.toggle "add_comment#{@node.zip}", "add_comment_form#{@node.zip}"
#  end
#  page.visual_effect :highlight, "comment#{@comment[:id]}", :duration => 0.3
#end
update_page_content(page, @comment)
=begin
if @comment.new_record?
  page.replace "#{params[:dom_id]}_form", :file => template_path_from_template_url + "_form.erb"
else
  pos = params[:position] || :before
  ref = params[:reference] || "#{params[:dom_id]}_add"
  page.insert_html pos.to_sym, ref, :file => template_path_from_template_url + ".erb"
  @comment = Comment.new
  page.replace "#{params[:dom_id]}_form", :file => template_path_from_template_url + "_form.erb"
  if params[:done]
    page << params[:done]
  else
    page.toggle "#{params[:dom_id]}_form", "#{params[:dom_id]}_add"
  end
end
=end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
zena-1.2.1 app/views/comments/create.rjs
zena-1.2.0 app/views/comments/create.rjs
zena-1.1.3 app/views/comments/create.rjs
zena-1.1.2 app/views/comments/create.rjs
zena-1.1.1 app/views/comments/create.rjs
zena-1.1.0 app/views/comments/create.rjs
zena-1.0.0 app/views/comments/create.rjs
zena-1.0.0.rc3 app/views/comments/create.rjs
zena-1.0.0.rc2 app/views/comments/create.rjs
zena-1.0.0.rc1 app/views/comments/create.rjs
zena-1.0.0.beta3 app/views/comments/create.rjs
zena-1.0.0.beta2 app/views/comments/create.rjs
zena-1.0.0.beta1 app/views/comments/create.rjs