From 0b1a19cd76b79aa093170d96270df2c2de921a76 Mon Sep 17 00:00:00 2001 From: Peng DU Date: Wed, 13 Jul 2016 19:25:02 +0200 Subject: [PATCH] calendar training slot redirect to fetch of training --- app/assets/javascripts/controllers/calendar.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/controllers/calendar.coffee b/app/assets/javascripts/controllers/calendar.coffee index 008b7e703..f8b2184ff 100644 --- a/app/assets/javascripts/controllers/calendar.coffee +++ b/app/assets/javascripts/controllers/calendar.coffee @@ -64,6 +64,7 @@ Application.Controllers.controller "CalendarController", ["$scope", "$state", "$ if event.available_type == 'event' $state.go('app.public.events_show', {id: event.event_id}) else if event.available_type == 'training' + $state.go('app.public.training_show', {id: event.training_id}) else $state.go('app.public.machines_show', {id: event.machine_id})