From 834ed20df498075c3c89203b021ca9175c2468dd Mon Sep 17 00:00:00 2001 From: Mike Risher Date: Tue, 12 Jan 2021 20:46:55 +0000 Subject: [PATCH] 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 --- Open-ILS/web/js/dojo/openils/widget/AutoGrid.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } }; -- 2.11.0