From c0a46e5bf18d753bf586608af5955c1c2397af2b Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 30 Sep 2020 11:45:44 +0200 Subject: [PATCH] fix public calendar --- app/frontend/src/javascript/controllers/calendar.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/frontend/src/javascript/controllers/calendar.js b/app/frontend/src/javascript/controllers/calendar.js index 26cd7666c..784b8c4ac 100644 --- a/app/frontend/src/javascript/controllers/calendar.js +++ b/app/frontend/src/javascript/controllers/calendar.js @@ -55,7 +55,9 @@ Application.Controllers.controller('CalendarController', ['$scope', '$state', '$ evt: filter.evt, dispo: filter.dispo }); - $scope.calendarConfig.events = availabilitySourceUrl(); + $scope.eventSources = [{ + url: availabilitySourceUrl() + }]; // external iCalendar events sources $scope.externals.forEach(e => { if (e.checked) { @@ -159,7 +161,6 @@ Application.Controllers.controller('CalendarController', ['$scope', '$state', '$ const initialize = () => { // fullCalendar (v2) configuration $scope.calendarConfig = CalendarConfig({ - events: availabilitySourceUrl(), slotEventOverlap: true, header: { left: 'month agendaWeek agendaDay', @@ -179,6 +180,9 @@ Application.Controllers.controller('CalendarController', ['$scope', '$state', '$ return eventRenderCb(event, element); } }); + $scope.eventSources = [{ + url: availabilitySourceUrl() + }]; $scope.externals.forEach(e => { if (e.checked) { $scope.eventSources.push({