From: Mike Risher Date: Tue, 12 Jan 2021 20:46:55 +0000 (+0000) Subject: LP1625192 Filtering Grid refreshes to 1st Page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f11e398083e4f289f055757796db7245f3c0ef1c;p=Evergreen.git LP1625192 Filtering Grid refreshes to 1st Page Modify the old DOJO grid so that when you filter the grid it resets to the first page. Signed-off-by: Mike Risher Signed-off-by: Terran McCanna Signed-off-by: Jason Boyer --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index 8936338063..fa8b0f24ba 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -130,7 +130,6 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { self.filterDialog.onApply = function(filter) { if (self.urlNavigation) { self.applyAndExecuteUrlOps(0, filter); - } else { self.cachedQuerySearch = filter; self.resetStore(); @@ -139,6 +138,8 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { self.cachedQuerySearch, true ); + self.cachedQueryOpts.offset = self.displayOffset = 0; + self.refresh(); } };