Browse Source

hiding lists in twistday reminder module which have no items

master
Simon Grim 10 years ago
parent
commit
b8644a0639
  1. 6
      js/interface_home.js

6
js/interface_home.js

@ -306,10 +306,8 @@ function refreshTwistdayReminder() { @@ -306,10 +306,8 @@ function refreshTwistdayReminder() {
}
}
if (listCurrent.children().length)
listCurrent.parent().show();
if (listUpcoming.children().length)
listUpcoming.parent().show();
listCurrent.parent().css('display', listCurrent.children().length ? 'block' : 'none')
listUpcoming.parent().css('display', listUpcoming.children().length ? 'block' : 'none')
module.find('.refresh').show();
module.find('.loading-roller').hide();
}, null,

Loading…
Cancel
Save