mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
13 lines
No EOL
522 B
Text
13 lines
No EOL
522 B
Text
remove_deleted_context();
|
|
|
|
ContextListPage.update_all_states_count(<%=@active_contexts_count%>, <%=@hidden_contexts_count%>, <%=@closed_contexts_count%>)
|
|
|
|
TracksPages.set_page_badge(<%=@down_count%>);
|
|
TracksPages.page_inform("<%= t('contexts.context_deleted', :name=>@context.name)%>");
|
|
|
|
/* TODO: refactor and move function to application.js */
|
|
function remove_deleted_context() {
|
|
$('div#<%=dom_id(@context, "container")%>').slideUp(1000, function() {
|
|
$('div#<%=dom_id(@context, "container")%>').remove();
|
|
});
|
|
} |