tracks/app/views/contexts/update.js.rjs

10 lines
429 B
Text
Raw Normal View History

status_message = 'Context saved'
page.notify :notice, status_message, 5.0
if @context_state_changed
2009-10-07 11:33:48 -04:00
page.remove dom_id(@context, 'container')
page.insert_html :bottom, "list-contexts-#{@new_state}", :partial => 'context_listing', :object => @context
else
page.replace_html dom_id(@context, 'container'), :partial => 'context_listing', :object => @context
end
2009-10-07 11:33:48 -04:00
page.visual_effect :highlight, dom_id(@context), :duration => 3