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().css('display', listCurrent.children().length ? 'block' : 'none')
listCurrent.parent().show(); listUpcoming.parent().css('display', listUpcoming.children().length ? 'block' : 'none')
if (listUpcoming.children().length)
listUpcoming.parent().show();
module.find('.refresh').show(); module.find('.refresh').show();
module.find('.loading-roller').hide(); module.find('.loading-roller').hide();
}, null, }, null,