From 201eefc7bd5e57c11b616d5b1b23c4bb19e74fe3 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 23 Feb 2017 12:39:50 +0100 Subject: [PATCH] fix reservation through all trainings calendar --- app/assets/javascripts/controllers/trainings.coffee.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/controllers/trainings.coffee.erb b/app/assets/javascripts/controllers/trainings.coffee.erb index 1c80e54f0..ea8732bfb 100644 --- a/app/assets/javascripts/controllers/trainings.coffee.erb +++ b/app/assets/javascripts/controllers/trainings.coffee.erb @@ -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()