Module: check_mk
Branch: master
Commit: 75b4752536d41dfd88f0b0928d349b639910b46f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=75b4752536d41d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 15 12:11:45 2013 +0100
Fix exception with update_context_links()
Seemed to appear only in dashlets
---
web/htdocs/views.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 88f6bcc..9c4ed79 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1741,8 +1741,8 @@ def show_context_links(thisview, active_filters, show_filters,
display_options,
html.end_context_buttons()
def update_context_links(enable_command_toggle, enable_checkbox_toggle):
- html.javascript("update_togglebutton('commands', %d);" %
enable_command_toggle)
- html.javascript("update_togglebutton('checkbox', %d);" %
(enable_command_toggle and enable_checkbox_toggle, ))
+ html.javascript("update_togglebutton('commands', %d);" %
(enable_command_toggle and 1 or 0))
+ html.javascript("update_togglebutton('checkbox', %d);" %
(enable_command_toggle and enable_checkbox_toggle and 1 or 0, ))
# Collect all views that share a context with thisview. For example
# if a view has an active filter variable specifying a host, then