tracks/app/views/contexts/create.js.rjs
2008-05-20 21:28:26 +01:00

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