Module: check_mk
Branch: master
Commit: 03bae2e0abb9a457f0d2db44f295321e6c86f8b0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=03bae2e0abb9a4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 21 16:39:14 2012 +0200
Clearing refresh timers during scheduling new timers
---
web/htdocs/js/checkmk.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/js/checkmk.js b/web/htdocs/js/checkmk.js
index 7267e72..36392b8 100644
--- a/web/htdocs/js/checkmk.js
+++ b/web/htdocs/js/checkmk.js
@@ -659,6 +659,8 @@ function setReload(secs, url) {
}
function startReloadTimer(url) {
+ if(gReloadTimer)
+ clearTimeout(gReloadTimer);
gReloadTimer = setTimeout("handleReload('" + url + "')",
Math.ceil(parseFloat(gReloadTime) * 1000));
}