From 260e35da8093d24b77fc1abdd8c47815dfee6a4c Mon Sep 17 00:00:00 2001
From: David Siegfried <david.siegfried@uni-vechta.de>
Date: Wed, 22 Jun 2022 12:31:15 +0000
Subject: [PATCH] pass variable to function, fixes #1167

Closes #1167

Merge request studip/studip!716
---
 resources/assets/javascripts/bootstrap/fullcalendar.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/assets/javascripts/bootstrap/fullcalendar.js b/resources/assets/javascripts/bootstrap/fullcalendar.js
index a3d0c483e38..62beaa9e9f2 100644
--- a/resources/assets/javascripts/bootstrap/fullcalendar.js
+++ b/resources/assets/javascripts/bootstrap/fullcalendar.js
@@ -19,7 +19,7 @@ STUDIP.ready(function () {
         setTimeout(() => {
             calendar.updateSize();
             if (ttl > 0) {
-                continuousRefresh(ttl - 1);
+                continuousRefresh(calendar, ttl - 1);
             }
         }, 200);
     }
-- 
GitLab