fix allPersons filter
This commit is contained in:
parent
b35ea4e2a1
commit
b7c88989e1
2 changed files with 3 additions and 2 deletions
|
@ -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 />
|
||||
|
|
3
angular_app/js/controllers.js
vendored
3
angular_app/js/controllers.js
vendored
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue