Reset page number to one when applying filter on list view

This commit is contained in:
AndyButland
2014-07-22 22:35:58 +01:00
parent 92ef071883
commit e8eea039e1

View File

@@ -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);