From fc1cf991429601efb03e975536961689e5ac572a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 18 Jul 2017 16:53:40 +0200 Subject: [locationinfo] weekcalendar: Fix hourline timer handle being global --- .../frontend/jquery-week-calendar/jquery.weekcalendar.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules-available/locationinfo') 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 } -- cgit v1.2.3-55-g7522