forked from 0x2620/pandora
document filters
This commit is contained in:
parent
a833e95a8b
commit
c8e8cc29ef
1 changed files with 3 additions and 3 deletions
|
@ -178,7 +178,7 @@ pandora.ui.documentFilter = function(id) {
|
|||
pandora.$ui.mainMenu.checkItem('sortMenu_sortfilters_sortfilter' + id + '_' + data.key);
|
||||
pandora.$ui.mainMenu.checkItem('sortMenu_orderfilters_orderfilter' + id + '_' + (data.operator == '+' ? 'ascending' : 'descending'));
|
||||
filters[i].sort = [{key: data.key, operator: data.operator}];
|
||||
pandora.UI.set({filters: filters});
|
||||
pandora.UI.set({documentFilters: filters});
|
||||
}
|
||||
}),
|
||||
$menu = Ox.MenuButton({
|
||||
|
@ -214,7 +214,7 @@ pandora.ui.documentFilter = function(id) {
|
|||
}
|
||||
filters[i] = makeFilter(id_);
|
||||
pandora.UI.set(Ox.extend({
|
||||
filters: filters
|
||||
documentFilters: filters
|
||||
}, find ? {
|
||||
findDocuments: find
|
||||
} : {}));
|
||||
|
@ -229,7 +229,7 @@ pandora.ui.documentFilter = function(id) {
|
|||
pandora.user.ui._documentFilterState[i_] = filterData;
|
||||
filters[i] = makeFilter(id_, pandora.user.ui.documentFilters[i_].sort);
|
||||
filters[i_] = makeFilter(id, pandora.user.ui.documentFilters[i].sort);
|
||||
pandora.UI.set({filters: filters});
|
||||
pandora.UI.set({documentFilters: filters});
|
||||
replaceFilter(i, id_);
|
||||
replaceFilter(i_, id);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue