mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-13 16:06:16 +01:00
further fixing regressions
This commit is contained in:
parent
a8e426a2cd
commit
8b464112ad
7 changed files with 61 additions and 59 deletions
|
|
@ -794,9 +794,7 @@ var ProjectListPage = {
|
|||
var ContextListPage = {
|
||||
update_state_count: function(state, count) {
|
||||
$('#'+state+'-contexts-count').html(count);
|
||||
if (count==0) {
|
||||
ContextListPage.set_empty_message(state, true);
|
||||
}
|
||||
ContextListPage.set_empty_message(state, count==0);
|
||||
},
|
||||
update_all_states_count: function (active_count, hidden_count, closed_count) {
|
||||
$(["active", "hidden", "closed"]).each(function() {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
|
||||
function update_container_states() {
|
||||
ContextListPage.update_all_states_count(<%=@active_contexts.count%>, <%=@hidden_contexts.count%>, <%=@closed_contexts.count%>);
|
||||
ContextListPage.show_or_hide_all_state_containers(<%= !@active_contexts.empty? %>, <%= !@hidden_contexts.empty? %>, <%= !@closed_contexts.empty? %>);
|
||||
}
|
||||
|
||||
function html_for_context_listing() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue