#191: do not ask for summary, in the list of all tickets
This commit is contained in:
parent
c6d84acbc6
commit
d1641d3023
1 changed files with 5 additions and 1 deletions
6
angular_app/js/controllers.js
vendored
6
angular_app/js/controllers.js
vendored
|
@ -78,7 +78,11 @@ eventManControllers.controller('EventsListCtrl', ['$scope', 'Event', 'EventTicke
|
||||||
$scope.filteredLength = 0;
|
$scope.filteredLength = 0;
|
||||||
$scope.maxPaginationSize = 10;
|
$scope.maxPaginationSize = 10;
|
||||||
|
|
||||||
$scope.events = Event.all({_summary: true}, function(events) {
|
var query_params = {};
|
||||||
|
if (!$state.is('tickets')) {
|
||||||
|
query_params['_summary'] = true
|
||||||
|
}
|
||||||
|
$scope.events = Event.all(query_params, function(events) {
|
||||||
if (events && $state.is('tickets')) {
|
if (events && $state.is('tickets')) {
|
||||||
angular.forEach(events, function(evt, idx) {
|
angular.forEach(events, function(evt, idx) {
|
||||||
var evt_tickets = (evt.tickets || []).slice(0);
|
var evt_tickets = (evt.tickets || []).slice(0);
|
||||||
|
|
Loading…
Reference in a new issue