only update items count if list is visible

This commit is contained in:
j 2015-11-23 15:52:47 +01:00
parent 041e442290
commit 63f3063c95

View file

@ -448,7 +448,8 @@ pandora.ui.list = function() {
) { ) {
list = data.query.conditions[0].value; list = data.query.conditions[0].value;
folder = pandora.getListData(list).folder; folder = pandora.getListData(list).folder;
if (pandora.$ui.folderList[folder]) { if (pandora.$ui.folderList[folder]
&& !Ox.isEmpty(pandora.$ui.folderList[folder].value(list))) {
pandora.$ui.folderList[folder].value( pandora.$ui.folderList[folder].value(
list, 'items', data.items list, 'items', data.items
); );