From c8e8cc29ef29f70a6ad24de6da5a12ac99bf0465 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 7 Jun 2019 16:42:33 +0100 Subject: [PATCH] document filters --- static/js/documentFilter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/documentFilter.js b/static/js/documentFilter.js index 8f74a197..9f09b95b 100644 --- a/static/js/documentFilter.js +++ b/static/js/documentFilter.js @@ -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); }