Sha256: cab71c8d55389c1663c7cd15daca7dd85e78003dbeb25777dd0fb90692b3335e
Contents?: true
Size: 844 Bytes
Versions: 19
Compression:
Stored size: 844 Bytes
Contents
- id = dom_id(@tag) - if params[:cancel].true? # <----------------- Hide [Edit Tag] $('##{id}').replaceWith('#{ j render(:partial => "tag", :collection => [ @tag ]) }'); - else # <---------------------------------------- Show [Edit Tag] form. - if @previous # Hide open [Edit Tag] form if any. - if @previous.is_a?(Tag) # Previous tag still exists? $('##{dom_id(@previous)}').replaceWith('#{ j render(:partial => "tag", :collection => [ @previous ]) }'); - else crm.flick('tag_#{@previous}', 'remove'); -# Disable onMouseOver for the list item. -# Hide [Create Tag] form if any. -# Show [Edit Tag] form. crm.highlight_off('#{id}'); crm.hide_form('create_tag'); $('##{id}').html('#{ j render(:partial => "edit") }'); $('#tag_name').focus();
Version data entries
19 entries across 19 versions & 2 rubygems