From 886f0a9911ff076e26c9976522d44386a46481b0 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+github@gmail.com> Date: Wed, 6 Jul 2022 14:12:55 +0200 Subject: [PATCH] fixes #1281 --- resources/assets/javascripts/bootstrap/resources.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/assets/javascripts/bootstrap/resources.js b/resources/assets/javascripts/bootstrap/resources.js index eec5ba1b56d..ec8e224797d 100644 --- a/resources/assets/javascripts/bootstrap/resources.js +++ b/resources/assets/javascripts/bootstrap/resources.js @@ -733,10 +733,10 @@ STUDIP.ready(function () { use_session_date = false; } } - if (node.calendar == undefined) { - if (jQuery(node).hasClass('semester-plan')) { + if (this.calendar == undefined) { + if (jQuery(this).hasClass('semester-plan')) { STUDIP.Fullcalendar.createSemesterCalendarFromNode( - node, + this, { loading: function (isLoading) { if (!isLoading) { @@ -773,7 +773,7 @@ STUDIP.ready(function () { config.defaultDate = session_date_string; } } - STUDIP.Fullcalendar.createFromNode(node, config); + STUDIP.Fullcalendar.createFromNode(this, config); } } }); -- GitLab