Sha256: 36147c8d1149c43ccd4b3b7b1a0fa5333c1f2598f6c0b26a05040d53f55a7fe7
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
id = dom_id(@task) if params[:cancel].true? # <----------------- Hide [Edit Task] partial = (@task.assigned_to && @task.assigned_to != current_user.id) ? "assigned" : "pending" page[id].replace_html :partial => partial, :collection => [ @task ], :locals => { :bucket => @task.bucket } else # <---------------------------------------- Show [Edit Task] form. page.call "crm.hide_form", :create_task # Hide [Create Task] form if it's open. if @previous # Hide open [Edit Lead] form if any. if @previous.is_a?(Task) partial = (@previous.assigned_to && @previous.assigned_to != current_user.id) ? "assigned" : "pending" page[dom_id(@previous)].replace :partial => partial, :collection => [ @previous ], :locals => { :bucket => nil } else page.call "crm.flick", "task_#{@previous}", :remove end end page.call "crm.highlight_off", id # Disable onMouseOver for the list item. page[id].replace_html :partial => "edit" # Show [Edit Task] form. page[:task_name].focus end
Version data entries
5 entries across 5 versions & 1 rubygems