diff --git a/lms/www/batches/batch.js b/lms/www/batches/batch.js index 9a71e5e6..1206cb8f 100644 --- a/lms/www/batches/batch.js +++ b/lms/www/batches/batch.js @@ -692,6 +692,17 @@ const get_calendar_options = (element, calendar_id) => { }, ], template: { + allday: function (event) { + let hide = event.raw.completed ? "" : "hide"; + return `
+ +
${event.title}
+
`; + }, time: function (event) { let hide = event.raw.completed ? "" : "hide"; return `
{ const scroll_to_date = (calendar, events) => { if ( new Date() < new Date(events[0].date) || - new Date() > new Date(events.slice(-1).date) + new Date() > new Date(events.slice(-1)[0].date) ) { calendar.setDate(new Date(events[0].date)); }