2010-10-31 21:27:13 +08:00
|
|
|
status_message = t('contexts.save_status_message')
|
2007-11-17 21:12:34 +00:00
|
|
|
page.notify :notice, status_message, 5.0
|
2009-04-07 21:18:23 +02:00
|
|
|
if @context_state_changed
|
2009-10-07 11:33:48 -04:00
|
|
|
page.remove dom_id(@context, 'container')
|
2009-04-07 21:18:23 +02:00
|
|
|
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
|