mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
12 lines
No EOL
480 B
Text
12 lines
No EOL
480 B
Text
if @saved
|
|
page.hide 'contexts-empty-nd'
|
|
page.insert_html :bottom, "list-contexts", :partial => 'context_listing', :locals => { :context_listing => @context }
|
|
page.sortable "list-contexts", get_listing_sortable_options
|
|
page.hide 'status'
|
|
page['badge_count'].replace_html @down_count
|
|
page.call "Form.reset", "context-form"
|
|
page.call "Form.focusFirstElement", "context-form"
|
|
else
|
|
page.show 'status'
|
|
page.replace_html 'status', "#{error_messages_for('context')}"
|
|
end |