Module: check_mk
Branch: master
Commit: bd60f3425857b8412dd6b0b590b823261596be82
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bd60f3425857b8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 21 08:18:36 2014 +0100
Filters can now really be used for dashlets
---
web/htdocs/dashboard.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index 2537915..4967b13 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -479,12 +479,18 @@ dashboard_scheduler(1);
html.body_end() # omit regular footer with status icons, etc.
def render_dashlet_content(nr, the_dashlet):
+ html.stash_vars()
+ html.del_all_vars()
+ visuals.add_context_to_uri_vars(the_dashlet)
+
dashlet_type = dashlet_types[the_dashlet['type']]
if 'iframe_render' in dashlet_type:
dashlet_type['iframe_render'](nr, the_dashlet)
else:
dashlet_type['render'](nr, the_dashlet)
+ html.unstash_vars()
+
# Create the HTML code for one dashlet. Each dashlet has an id "dashlet_%d",
# where %d is its index (in board["dashlets"]). Javascript uses that id
# for the resizing. Within that div there is an inner div containing the