aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-11-06 16:16:23 +0000
committerMario <mario@mariovavti.com>2024-11-06 16:16:23 +0000
commit939e5d9ca59a9fb9dd86108715ea05c661be4040 (patch)
tree22ccd93fe46af6509dcd84f443822adb116ce6d5
parent600209e21e35c4253335221ccf7353f494d4d6d8 (diff)
downloadvolse-hubzilla-939e5d9ca59a9fb9dd86108715ea05c661be4040.tar.gz
volse-hubzilla-939e5d9ca59a9fb9dd86108715ea05c661be4040.tar.bz2
volse-hubzilla-939e5d9ca59a9fb9dd86108715ea05c661be4040.zip
fix allday variable not set when clicking an event
-rw-r--r--view/tpl/cdav_calendar.tpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/view/tpl/cdav_calendar.tpl b/view/tpl/cdav_calendar.tpl
index cd2e45b8c..61932a168 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 {