diff --git a/src/collective/fullcalendar/views/fullcalendar_view.pt b/src/collective/fullcalendar/views/fullcalendar_view.pt index a92d479..438aa38 100644 --- a/src/collective/fullcalendar/views/fullcalendar_view.pt +++ b/src/collective/fullcalendar/views/fullcalendar_view.pt @@ -45,6 +45,9 @@ calendar.render(); + var editable = ; + + if (editable) { calendar.on('dateClick', function(info) { date = info.dateStr; allDay = info.allDay; @@ -70,7 +73,7 @@ url.searchParams.set('allDay', allDay); calendarAddLink.setAttribute('href', url); calendarAddLink.click(); - }); + });} calendar.on('eventResize', function(info) { if (confirm("Do you want to change the event?")) {