1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00

fix reservation through all trainings calendar

This commit is contained in:
Sylvain 2017-02-23 12:39:50 +01:00
parent b098281155
commit 201eefc7bd

View File

@ -306,8 +306,6 @@ Application.Controllers.controller "ReserveTrainingController", ["$scope", "$sta
##
# Once the reservation is booked (payment process successfully completed), change the event style
# in fullCalendar, update the user's subscription and free-credits if needed
@ -357,6 +355,8 @@ Application.Controllers.controller "ReserveTrainingController", ["$scope", "$sta
##
calendarEventClickCb = (event, jsEvent, view) ->
$scope.selectedEvent = event
if $stateParams.id is 'all'
$scope.training = event.training
$scope.selectionTime = new Date()