From 497de05db2e318bd15a8a1e4901cddf8a341a043 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 7 Dec 2023 15:53:10 +0530 Subject: [PATCH] fix: all day events style --- lms/www/batches/batch.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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)); }