Skip to content

Commit

Permalink
Hack around Issue collective#5
Browse files Browse the repository at this point in the history
  • Loading branch information
espenmn committed Jun 28, 2023
1 parent 9cfd6bd commit 2c34b18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/collective/fullcalendar/views/fullcalendar_view.pt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@

calendar.render();

var editable = <tal:block tal:content="structure python:view.get_editable()" />;

if (editable) {
calendar.on('dateClick', function(info) {
date = info.dateStr;
allDay = info.allDay;
Expand All @@ -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?")) {
Expand Down

0 comments on commit 2c34b18

Please sign in to comment.