summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}