2010-10-23 17:52:50 +02:00
|
|
|
remove_deleted_context();
|
|
|
|
|
|
|
|
|
|
ContextListPage.update_all_states_count(<%=@active_contexts_count%>, <%=@hidden_contexts_count%>)
|
|
|
|
|
ContextListPage.show_or_hide_all_state_containers(<%= @show_active_contexts %>, <%= @show_hidden_contexts %>);
|
|
|
|
|
|
2010-12-03 17:52:24 +01:00
|
|
|
TracksPages.set_page_badge(<%=@down_count%>);
|
|
|
|
|
TracksPages.page_notify('notice', "<%= t('contexts.context_deleted', :name=>@context.name)%>", 5);
|
2010-10-23 17:52:50 +02:00
|
|
|
|
2010-12-03 17:52:24 +01:00
|
|
|
/* TODO: refactor and move function to application.js */
|
2010-10-23 17:52:50 +02:00
|
|
|
function remove_deleted_context() {
|
2010-12-03 17:52:24 +01:00
|
|
|
$('div#<%=dom_id(@context, "container")%>').slideUp(1000, function() {
|
2010-10-23 17:52:50 +02:00
|
|
|
$('div#<%=dom_id(@context, "container")%>').remove();
|
2010-12-03 17:52:24 +01:00
|
|
|
});
|
2010-10-23 17:52:50 +02:00
|
|
|
}
|