Module: check_mk
Branch: master
Commit: fa109fa8ca7680dfa7446fac4a71c73f64edb271
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa109fa8ca7680…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 18 09:00:09 2012 +0200
FIX: Updating the dashboard header time when the dashlets refresh
---
ChangeLog | 1 +
web/htdocs/js/dashboard.js | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 27277ea..84d4b0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -53,6 +53,7 @@
* FIX: fix exception when disallowing changing display options
* FIX: Automatically redirect from login page to target page when already
logged in
+ * FIX: Updating the dashboard header time when the dashlets refresh
BI
* FIX: Fixed filtering of Single-Host Aggregations
diff --git a/web/htdocs/js/dashboard.js b/web/htdocs/js/dashboard.js
index b8275db..6d2fcb8 100644
--- a/web/htdocs/js/dashboard.js
+++ b/web/htdocs/js/dashboard.js
@@ -132,12 +132,20 @@ function dashboard_scheduler(force) {
var url = refresh_dashlets[i][2];
if (force || (refresh > 0 && timestamp % refresh == 0)) {
- get_url(url, updateContents, "dashlet_inner_" + nr);
+ get_url(url, dashboard_update_contents, "dashlet_inner_" + nr);
}
}
setTimeout(function() { dashboard_scheduler(0); }, 1000);
}
+function dashboard_update_contents(id, code) {
+ // Update the header time
+ updateHeaderTime();
+
+ // Call the generic function to replace the dashlet inner code
+ updateContents(id, code);
+}
+
function update_dashlet(id, code) {
var obj = document.getElementById(id);
if (obj) {