Default filter option for configuration screens user/paxed/lp1183553
authorSteven Chan <schan@sitka.bclibraries.ca>
Thu, 23 May 2013 20:24:04 +0000 (13:24 -0700)
committerPasi Kallinen <pasi.kallinen@pttk.fi>
Thu, 29 Aug 2013 13:44:56 +0000 (16:44 +0300)
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 <schan@sitka.bclibraries.ca>
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Open-ILS/web/js/dojo/openils/widget/AutoGrid.js

index ddc3e58..73f3509 100644 (file)
@@ -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 ),