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})