Sha256: 7f60cc48e515487249a95bfd59ade25eda4c37aa1d36263b41bf2f571cfab1c8

Contents?: true

Size: 609 Bytes

Versions: 5

Compression:

Stored size: 609 Bytes

Contents

if params[:cancel]
  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}   
else
  page.replace_html "comment_#{@comment.id}", :partial => 'comments/edit_form', :locals => {:comment => @comment}
  page << "tinyMCE.execCommand('mceAddControl', true, $$('#edit_comment_#{@comment.id}_form textarea')[0]);"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/comments/edit.js.rjs
community_engine-2.3.1 app/views/comments/edit.js.rjs
community_engine-2.3.0 app/views/comments/edit.js.rjs
community_engine-2.1.0 app/views/comments/edit.js.rjs
community_engine-2.0.0 app/views/comments/edit.js.rjs