major restructuring/refactoring of application.js. finally scratched that itch. Some tests are failing to be fixed later.

This commit is contained in:
Reinier Balt 2010-11-25 23:29:32 +01:00
parent 88a524a8d6
commit 879fbc99e2
12 changed files with 606 additions and 642 deletions

View file

@ -1,11 +1,11 @@
<% if @saved -%>
hide_empty_message();
TracksForm.hide_errors();
TracksPages.hide_errors();
set_page_badge(<%= @down_count %>);
add_context("<%=@context.hidden? ? 'hidden' : 'active'%>");
clear_form();
<% else -%>
TracksForm.show_errors(html_for_error_messages());
TracksPages.show_errors(html_for_error_messages());
<% end -%>
function hide_empty_message() {