From e8eea039e14dfe24b57ca62813f9c3326e0d9475 Mon Sep 17 00:00:00 2001 From: AndyButland Date: Tue, 22 Jul 2014 22:35:58 +0100 Subject: [PATCH] Reset page number to one when applying filter on list view --- .../src/views/propertyeditors/listview/listview.controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js index 8a765bb0f6..578d7a464d 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js @@ -94,7 +94,8 @@ function listViewController($rootScope, $scope, $routeParams, $injector, notific }; //assign debounce method to the search to limit the queries - $scope.search = _.debounce(function() { + $scope.search = _.debounce(function () { + $scope.options.pageNumber = 1; $scope.reloadView($scope.contentId); }, 100);