From 17183cc5dcbc5eb825d353d9f24fa74b2e4c6cdd Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 7 Nov 2024 14:29:52 +0000 Subject: fix allday not set if a rsource is provided --- view/tpl/cdav_calendar.tpl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'view') diff --git a/view/tpl/cdav_calendar.tpl b/view/tpl/cdav_calendar.tpl index 61932a168..7399a2b59 100644 --- a/view/tpl/cdav_calendar.tpl +++ b/view/tpl/cdav_calendar.tpl @@ -357,6 +357,12 @@ $(document).ready(function() { event_uri = resource.event_hash; event_xchan = resource.event_xchan; + allday = resource.adjust ? 0 : 1; + + if (allday) { + $('#id_dtstart_wrapper, #id_dtend_wrapper, #id_timezone_select_wrapper').hide(); + } + $('#calendar_select').val('channel_calendar').attr('disabled', true); $('#id_title').val(resource.summary); -- cgit v1.2.3