From b7c88989e14e6f73ca779279cebe918308bc239e Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 2 Apr 2017 14:22:51 +0200 Subject: [PATCH] fix allPersons filter --- angular_app/event-tickets.html | 2 +- angular_app/js/controllers.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/angular_app/event-tickets.html b/angular_app/event-tickets.html index e450ee2..0f74443 100644 --- a/angular_app/event-tickets.html +++ b/angular_app/event-tickets.html @@ -93,7 +93,7 @@ - {{person.name}} {{person.surname}}
diff --git a/angular_app/js/controllers.js b/angular_app/js/controllers.js index 51b75e4..636f989 100644 --- a/angular_app/js/controllers.js +++ b/angular_app/js/controllers.js @@ -217,6 +217,7 @@ eventManControllers.controller('EventTicketsCtrl', ['$scope', '$state', 'Event', $scope.itemsPerPage = 10; $scope.filteredLength = 0; $scope.maxPaginationSize = 10; + $scope.maxAllPersons = 10; $scope.filterTickets = function() { var tickets = $scope.event.tickets || []; @@ -235,7 +236,7 @@ eventManControllers.controller('EventTicketsCtrl', ['$scope', '$state', 'Event', $scope.filterTickets(); }); - $scope.$watch('registeredFilterOptions', function() { + $scope.$watchCollection('registeredFilterOptions', function() { $scope.filterTickets(); });