2007-11-17 21:12:34 +00:00
|
|
|
status_message = 'Context saved'
|
|
|
|
|
page.notify :notice, status_message, 5.0
|
2009-04-07 21:18:23 +02:00
|
|
|
if @context_state_changed
|
|
|
|
|
page << "jQuery('##{dom_id(@context, 'edit')}').hide();"
|
|
|
|
|
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
|
|
|
|
|
page.sortable "list-contexts-active", get_listing_sortable_options
|
|
|
|
|
page.sortable "list-contexts-hidden", get_listing_sortable_options
|
2007-11-17 21:12:34 +00:00
|
|
|
|
|
|
|
|
page.hide "busy"
|