diff options
author | Mario <mario@mariovavti.com> | 2024-11-07 14:31:18 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-11-07 14:31:18 +0000 |
commit | e466c734071b52f71a8274d8a7d3329f9c5314ce (patch) | |
tree | d9d6f95728a6e9d686004f605d1eaabea1f1e8a6 | |
parent | e5aae2af0f31ae6727cf3089e709415645a892ef (diff) | |
download | volse-hubzilla-e466c734071b52f71a8274d8a7d3329f9c5314ce.tar.gz volse-hubzilla-e466c734071b52f71a8274d8a7d3329f9c5314ce.tar.bz2 volse-hubzilla-e466c734071b52f71a8274d8a7d3329f9c5314ce.zip |
fix allday not set if a rsource is provided
(cherry picked from commit 17183cc5dcbc5eb825d353d9f24fa74b2e4c6cdd)
Co-authored-by: Mario <mario@mariovavti.com>
-rw-r--r-- | view/tpl/cdav_calendar.tpl | 6 |
1 files changed, 6 insertions, 0 deletions
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); |