From fd6438073e97a456017f43962667ea8897c472f2 Mon Sep 17 00:00:00 2001 From: Steven Chan Date: Thu, 23 May 2013 13:24:04 -0700 Subject: [PATCH] Default filter option for configuration screens In the staff client, the AutoGrid widget is used to render configuration lists, and by default, the setting 'showLoadFilter' is turned off. It seems more useful to turn it on by default so that any configuration screen can use it unless its template sets it off. Signed-off-by: Steven Chan Signed-off-by: Pasi Kallinen --- Open-ILS/web/js/dojo/openils/widget/AutoGrid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index ddc3e58c4e..73f3509c67 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -32,7 +32,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { displayOffset : 0, requiredFields : null, hidePaginator : false, - showLoadFilter : false, + showLoadFilter : true, onItemReceived : null, suppressLinkedFields : null, // list of fields whose linked display data should not be fetched from the server @@ -108,7 +108,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { {fmClass:self.fmClass, suppressFilterFields:self.suppressFilterFields}) self.filterDialog.onApply = function(filter) { - self.cachedQuerySearch = dojo.mixin( filter, self.preFilterSearch ); + self.cachedQuerySearch = filter; self.resetStore(); self.loadAll( dojo.mixin( { offset : 0 }, self.cachedQueryOpts ), -- 2.11.0