aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/cdav_calendar.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-11-08 11:19:42 +0100
committerMario Vavti <mario@mariovavti.com>2024-11-08 11:19:42 +0100
commit4b4cac63fd4597b5c3090377196c8ad970900b21 (patch)
treea13eb1e5b569e6ac023000a8acb78d9f016f5209 /view/tpl/cdav_calendar.tpl
parent21b60bf119a3d070e385c1011f4c3ccb9951f23c (diff)
parent17183cc5dcbc5eb825d353d9f24fa74b2e4c6cdd (diff)
downloadvolse-hubzilla-4b4cac63fd4597b5c3090377196c8ad970900b21.tar.gz
volse-hubzilla-4b4cac63fd4597b5c3090377196c8ad970900b21.tar.bz2
volse-hubzilla-4b4cac63fd4597b5c3090377196c8ad970900b21.zip
Merge branch 'dev' into containers
Diffstat (limited to 'view/tpl/cdav_calendar.tpl')
-rw-r--r--view/tpl/cdav_calendar.tpl10
1 files changed, 9 insertions, 1 deletions
diff --git a/view/tpl/cdav_calendar.tpl b/view/tpl/cdav_calendar.tpl
index cd2e45b8c..7399a2b59 100644
--- a/view/tpl/cdav_calendar.tpl
+++ b/view/tpl/cdav_calendar.tpl
@@ -102,6 +102,8 @@ $(document).ready(function() {
var dtstart = new Date(info.event._instance.range.start);
var dtend = new Date(info.event._instance.range.end);
+ allday = event.allDay;
+
if(event.extendedProps.plink) {
if(! $('#l2s').length)
$('#id_title_wrapper').prepend('<span id="l2s" class="float-end"></span>');
@@ -112,7 +114,7 @@ $(document).ready(function() {
$('#l2s').remove();
}
- if(event.allDay) {
+ if (allday) {
$('#id_dtstart_wrapper, #id_dtend_wrapper, #id_timezone_select_wrapper').hide();
}
else {
@@ -355,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);