as optional parameter now
Message-ID: <5225fed5.L0wA/+bBynzWqsrX%lm(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: fb84f83c36634342f452ce60f2adde81391320c7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fb84f83c366343…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Sep 2 15:31:48 2013 +0200
host/service globe dashlets take "id" as optional parameter now
---
ChangeLog | 2 ++
web/htdocs/dashboard.py | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f769d86..5279411 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -129,6 +129,8 @@
only permitted on one child folder, the upper folder is removed from the
hierarchy)
* "Unchecked Services" view now uses the staleness of services for
filtering
+ * Globe dashlets make use of the parameter "id" to make it possible to
+ provide unique ids in the render HTML code to the dashlets
* FIX: better error message in case of exception in SNMP handling
* FIX: Inventory screen: Now shows custom checks
* FIX: Fixed locking problem of multisite pages related to user loading/saving
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index 6469801..b1ea65c 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -475,7 +475,7 @@ def dashlet_hoststats():
]
filter = "Filter: custom_variable_names < _REALNAME\n"
- render_statistics("hoststats", "hosts", table, filter)
+ render_statistics(html.var('id', "hoststats"), "hosts",
table, filter)
def dashlet_servicestats():
table = [
@@ -530,7 +530,7 @@ def dashlet_servicestats():
]
filter = "Filter: host_custom_variable_names < _REALNAME\n"
- render_statistics("servicestats", "services", table, filter)
+ render_statistics(html.var('id', "servicestats"),
"services", table, filter)
def render_statistics(pie_id, what, table, filter):