mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
9 lines
408 B
Text
9 lines
408 B
Text
status_message = 'Context saved'
|
|
page.notify :notice, status_message, 5.0
|
|
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[dom_id(@context)].show
|