hiding lists in twistday reminder module which have no items

This commit is contained in:
Simon Grim 2015-05-26 11:06:02 +05:00
parent 021bbe2d43
commit b8644a0639

View File

@ -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,