Sha256: f25c6665a2ba97242b53348d983eb2a1be3cae5ced0f2e46287b79dcf6197c59
Contents?: true
Size: 488 Bytes
Versions: 5
Compression:
Stored size: 488 Bytes
Contents
class_name = @comment.commentable.class.name.underscore id_prefix = "#{class_name}_#{@comment.commentable.id}" if @comment.valid? page.insert_html :after, "#{id_prefix}_comment_new", :partial => "comment", :locals => { :comment => @comment } page[dom_id(@comment)].visual_effect :highlight, :duration => 1.5 end page["#{id_prefix}_shown_notes"].value = @comment.commentable.comment_ids.join(',') page["#{id_prefix}_comment_comment"].clear page["#{id_prefix}_comment_comment"].focus
Version data entries
5 entries across 5 versions & 1 rubygems