Sha256: f6545800a43e8bd4d622ec5c6394ce0aa397caf955064e44ac803d935815cbf8
Contents?: true
Size: 591 Bytes
Versions: 5
Compression:
Stored size: 591 Bytes
Contents
if @comment.errors.any? page.select("#comment_#{@comment.id} .errors").invoke('update', @comment.errors.full_messages.to_sentence) page << "new Effect.Highlight($$('#comment_#{@comment.id} .errors')[0]);" else page << "tinyMCE.execCommand('mceFocus', false, $$('#edit_comment_#{@comment.id}_form textarea')[0]); tinyMCE.execCommand('mceRemoveControl', false, $$('#edit_comment_#{@comment.id}_form textarea')[0]);" page.replace "comment_#{@comment.id}", :partial => 'comments/comment', :formats => [:html], :locals => {:comment => @comment, :highlighted => true} end
Version data entries
5 entries across 5 versions & 1 rubygems