From d73bec0375263876087ecefb2b827dd4334c7e77 Mon Sep 17 00:00:00 2001 From: Daniel Spitzer Date: Tue, 13 May 2025 17:13:08 +0200 Subject: [PATCH] =?UTF-8?q?Kalender=20Update=20*=20Abgesagte=20Termine=20k?= =?UTF-8?q?=C3=B6nnen=20nun=20ausgeblendet=20werden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/pages/Calendar/View.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/js/pages/Calendar/View.js b/public/js/pages/Calendar/View.js index c74b4f96a..353f05c59 100644 --- a/public/js/pages/Calendar/View.js +++ b/public/js/pages/Calendar/View.js @@ -71,7 +71,7 @@ document.addEventListener('DOMContentLoaded', function () { }); - $.post(requestUrl, {visibleCalendars: visibleCalendars,visibleCancellation:1}, function (data) { + $.post(requestUrl, {visibleCalendars: visibleCalendars, visibleCancellation: 1}, function (data) { }, 'json').done(function (json) { if (json.success == true) { @@ -1007,7 +1007,9 @@ if (typeof (EventSource) !== 'undefined') { }); calendarFilter.each(function () { if (!$(this).hasClass('top-search-filter')) { - visibleCalendarTypes.push(parseInt($(this).data('ctype'))); + if ($(this).data('ctype')) { + visibleCalendarTypes.push(parseInt($(this).data('ctype'))); + } } }); jsondata = JSON.parse(e.data);