Sha256: 6b37ccede43ac441048474223e512710f13fb53bbc3f98547f5d1d5117da9fb5

Contents?: true

Size: 468 Bytes

Versions: 9

Compression:

Stored size: 468 Bytes

Contents

id = dom_id(@comment)

if params[:cancel].true?     # <----------------- Hide [Edit Comment]
  page[id].replace :partial => "comment", :collection => [ @comment ]

else # <----------------------------------------- Show [Edit Comment] form.

  page.call "crm.highlight_off", id             # Disable onMouseOver for the list item.
  page[id].replace_html :partial => "edit", :locals => { :commentable => @comment.commentable }
  page[dom_id(@comment, :text)].focus
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fat_free_crm-0.12.3 app/views/comments/edit.js.rjs
fat_free_crm-0.12.2 app/views/comments/edit.js.rjs
fat_free_crm-0.12.1 app/views/comments/edit.js.rjs
fat_free_crm-0.12.0 app/views/comments/edit.js.rjs
fat_free_crm-0.11.4 app/views/comments/edit.js.rjs
fat_free_crm-0.11.3 app/views/comments/edit.js.rjs
fat_free_crm-0.11.2 app/views/comments/edit.js.rjs
fat_free_crm-0.11.1 app/views/comments/edit.js.rjs
fat_free_crm-0.11.0 app/views/comments/edit.js.rjs