Sha256: ba82ba13bb692ee2c4199813cedd77286a55147fad533c342a5e98b67863fe84
Contents?: true
Size: 1.35 KB
Versions: 10
Compression:
Stored size: 1.35 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) #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
10 entries across 10 versions & 1 rubygems