Sha256: 5da7780bc2e1034a3d12019233f1275e41543e51a97c2a6aa1c68520ab8d717b
Contents?: true
Size: 1.34 KB
Versions: 3
Compression:
Stored size: 1.34 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 => fullpath_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 => fullpath_from_template_url + ".erb" @comment = Comment.new page.replace "#{params[:dom_id]}_form", :file => fullpath_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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zena-0.15.2 | app/views/comments/create.rjs |
zena-0.15.1 | app/views/comments/create.rjs |
zena-0.15.0 | app/views/comments/create.rjs |