mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
fix the 'load more events' button
This commit is contained in:
parent
471fe971bc
commit
894f836286
@ -22,6 +22,9 @@ Application.Controllers.controller "EventsController", ["$scope", "$state", 'Eve
|
||||
## List of age ranges
|
||||
$scope.ageRanges = ageRangesPromise
|
||||
|
||||
## Hide or show the 'load more' button
|
||||
$scope.noMoreResults = false
|
||||
|
||||
## Active filters for the events list
|
||||
$scope.filters =
|
||||
category_id: null
|
||||
@ -62,6 +65,7 @@ Application.Controllers.controller "EventsController", ["$scope", "$state", 'Eve
|
||||
$scope.eventsGroupByMonth = {}
|
||||
$scope.events = []
|
||||
$scope.monthOrder = []
|
||||
$scope.noMoreResults = false
|
||||
|
||||
# run a search query
|
||||
Event.query Object.assign({page: $scope.page}, $scope.filters), (data) ->
|
||||
|
Loading…
Reference in New Issue
Block a user