Module: check_mk
Branch: master
Commit: 8dc0287803b11d48fbebf5bd5a7f7eb239d0591c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8dc0287803b11d…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed May 21 17:53:54 2014 +0200
FIX dashboards: fixed bug not updating header timestamp
The header timestamp for dashboards only got updated if there were at least one
'url'-dashlet present.
If a dashboard only contained links to views the header time was never updated.
---
.werks/921 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/js/dashboard.js | 5 +++++
3 files changed, 15 insertions(+)
diff --git a/.werks/921 b/.werks/921
new file mode 100644
index 0000000..7bf2cfe
--- /dev/null
+++ b/.werks/921
@@ -0,0 +1,9 @@
+Title: dashboards: fixed bug not updating header timestamp
+Level: 1
+Component: multisite
+Version: 1.2.5i3
+Date: 1400687252
+Class: fix
+
+The header timestamp for dashboards only got updated if there were at least one
'url'-dashlet present.
+If a dashboard only contained links to views the header time was never updated.
diff --git a/ChangeLog b/ChangeLog
index f1b12bc..9da13c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -93,6 +93,7 @@
* 0909 FIX: Table checkboxes: Fixed bug where selected checkboxes got ignored...
* 0811 FIX: Fixed handling of exceptions occuring before login in debug mode
* 0912 FIX: Multisite Views: Fixed bug where custom views could not get deleted
+ * 0921 FIX: dashboards: fixed bug not updating header timestamp...
WATO:
* 0784 Improved security of WATO bulk inventory by using transaction ids
diff --git a/web/htdocs/js/dashboard.js b/web/htdocs/js/dashboard.js
index 43d1338..1b2eb0e 100644
--- a/web/htdocs/js/dashboard.js
+++ b/web/htdocs/js/dashboard.js
@@ -151,6 +151,11 @@ function dashboard_scheduler(force) {
}
}
setTimeout(function() { dashboard_scheduler(0); }, 1000);
+ // Update timestamp every minute
+ // Required if there are no refresh_dashlets present or all refresh times are >
60sec
+ if (timestamp % 60 == 0) {
+ updateHeaderTime();
+ }
}
function dashboard_update_contents(id, code) {