mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
fix public calendar
This commit is contained in:
parent
495a4686d5
commit
c0a46e5bf1
@ -55,7 +55,9 @@ Application.Controllers.controller('CalendarController', ['$scope', '$state', '$
|
|||||||
evt: filter.evt,
|
evt: filter.evt,
|
||||||
dispo: filter.dispo
|
dispo: filter.dispo
|
||||||
});
|
});
|
||||||
$scope.calendarConfig.events = availabilitySourceUrl();
|
$scope.eventSources = [{
|
||||||
|
url: availabilitySourceUrl()
|
||||||
|
}];
|
||||||
// external iCalendar events sources
|
// external iCalendar events sources
|
||||||
$scope.externals.forEach(e => {
|
$scope.externals.forEach(e => {
|
||||||
if (e.checked) {
|
if (e.checked) {
|
||||||
@ -159,7 +161,6 @@ Application.Controllers.controller('CalendarController', ['$scope', '$state', '$
|
|||||||
const initialize = () => {
|
const initialize = () => {
|
||||||
// fullCalendar (v2) configuration
|
// fullCalendar (v2) configuration
|
||||||
$scope.calendarConfig = CalendarConfig({
|
$scope.calendarConfig = CalendarConfig({
|
||||||
events: availabilitySourceUrl(),
|
|
||||||
slotEventOverlap: true,
|
slotEventOverlap: true,
|
||||||
header: {
|
header: {
|
||||||
left: 'month agendaWeek agendaDay',
|
left: 'month agendaWeek agendaDay',
|
||||||
@ -179,6 +180,9 @@ Application.Controllers.controller('CalendarController', ['$scope', '$state', '$
|
|||||||
return eventRenderCb(event, element);
|
return eventRenderCb(event, element);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$scope.eventSources = [{
|
||||||
|
url: availabilitySourceUrl()
|
||||||
|
}];
|
||||||
$scope.externals.forEach(e => {
|
$scope.externals.forEach(e => {
|
||||||
if (e.checked) {
|
if (e.checked) {
|
||||||
$scope.eventSources.push({
|
$scope.eventSources.push({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user