fix allPersons filter

This commit is contained in:
Davide Alberani 2017-04-02 14:22:51 +02:00
parent b35ea4e2a1
commit b7c88989e1
2 changed files with 3 additions and 2 deletions

View file

@ -93,7 +93,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="person in (query ? allPersons : []) | splittedFilter:query | personRegistered:{event: event, present: false} | limitTo:10>
<tr ng-repeat="person in (query ? allPersons : []) | splittedFilter:query | personRegistered:{event: event, present: false} | limitTo:maxAllPersons">
<td>
<strong>{{person.name}} {{person.surname}}</strong>
<br />

View file

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