mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
9 lines
447 B
Text
9 lines
447 B
Text
status_message = t('contexts.save_status_message')
|
|
page.notify :notice, status_message, 5.0
|
|
if @context_state_changed
|
|
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
|
|
page.visual_effect :highlight, dom_id(@context), :duration => 3
|