From 7d858601956bc17da1489af42eb2d7e13a2c0ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sun, 7 Jul 2013 14:17:40 +0200 Subject: [PATCH] Reset view to first page in file lists when filters are changed --- octoprint/static/js/ui.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/octoprint/static/js/ui.js b/octoprint/static/js/ui.js index 8f7fe520..f589f029 100644 --- a/octoprint/static/js/ui.js +++ b/octoprint/static/js/ui.js @@ -1771,6 +1771,7 @@ function ItemListHelper(listType, supportedSorting, supportedFilters, defaultSor self.currentFilters(filters); self._saveCurrentFiltersToLocalStorage(); + self.changePage(0); self._updateItems(); } @@ -1783,6 +1784,7 @@ function ItemListHelper(listType, supportedSorting, supportedFilters, defaultSor self.currentFilters(filters); self._saveCurrentFiltersToLocalStorage(); + self.changePage(0); self._updateItems(); }