when updating list counts, use original query, not current (potentially changed) query
This commit is contained in:
parent
3e71ed3d6f
commit
927a326143
1 changed files with 6 additions and 6 deletions
|
@ -396,15 +396,15 @@ pandora.ui.list = function() {
|
|||
});
|
||||
},
|
||||
init: function(data) {
|
||||
var find = pandora.user.ui.find, folder, list;
|
||||
if (find.conditions.length == 0) {
|
||||
var folder, list;
|
||||
if (data.query.conditions.length == 0) {
|
||||
pandora.$ui.allItems.update(data.items);
|
||||
} else if (
|
||||
find.conditions.length == 1
|
||||
&& find.conditions[0].key == 'list'
|
||||
&& find.conditions[0].operator == '=='
|
||||
data.query.conditions.length == 1
|
||||
&& data.query.conditions[0].key == 'list'
|
||||
&& data.query.conditions[0].operator == '=='
|
||||
) {
|
||||
list = find.conditions[0].value;
|
||||
list = data.query.conditions[0].value;
|
||||
folder = pandora.getListData(list).folder;
|
||||
if (pandora.$ui.folderList[folder]) {
|
||||
pandora.$ui.folderList[folder].value(
|
||||
|
|
Loading…
Reference in a new issue