forked from 0x2620/pandora
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) {
|
init: function(data) {
|
||||||
var find = pandora.user.ui.find, folder, list;
|
var folder, list;
|
||||||
if (find.conditions.length == 0) {
|
if (data.query.conditions.length == 0) {
|
||||||
pandora.$ui.allItems.update(data.items);
|
pandora.$ui.allItems.update(data.items);
|
||||||
} else if (
|
} else if (
|
||||||
find.conditions.length == 1
|
data.query.conditions.length == 1
|
||||||
&& find.conditions[0].key == 'list'
|
&& data.query.conditions[0].key == 'list'
|
||||||
&& find.conditions[0].operator == '=='
|
&& data.query.conditions[0].operator == '=='
|
||||||
) {
|
) {
|
||||||
list = find.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]) {
|
||||||
pandora.$ui.folderList[folder].value(
|
pandora.$ui.folderList[folder].value(
|
||||||
|
|
Loading…
Reference in a new issue