summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/frontend
diff options
context:
space:
mode:
authorSimon Rettberg2017-07-18 16:53:40 +0200
committerSimon Rettberg2017-07-18 16:53:40 +0200
commitfc1cf991429601efb03e975536961689e5ac572a (patch)
tree2259e325b74fe280966613513a6caafc16145331 /modules-available/locationinfo/frontend
parent[locationinfo] Better support for old webkit (diff)
downloadslx-admin-fc1cf991429601efb03e975536961689e5ac572a.tar.gz
slx-admin-fc1cf991429601efb03e975536961689e5ac572a.tar.xz
slx-admin-fc1cf991429601efb03e975536961689e5ac572a.zip
[locationinfo] weekcalendar: Fix hourline timer handle being global
Diffstat (limited to 'modules-available/locationinfo/frontend')
-rwxr-xr-xmodules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js b/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
index 3d2c03af..28b9e3cf 100755
--- a/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
+++ b/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
@@ -1494,12 +1494,15 @@ function MyDate() {
options.calendarAfterLoad(self.element);
- _hourLineTimeout && clearInterval(_hourLineTimeout);
+ if (self._hourLineTimeout) {
+ clearInterval(self._hourLineTimeout);
+ self._hourLineTimeout = false;
+ }
if (options.hourLine) {
self._drawCurrentHourLine();
- _hourLineTimeout = setInterval(function() {
+ self._hourLineTimeout = setInterval(function() {
self._drawCurrentHourLine();
}, 60 * 1000); // redraw the line each minute
}