Module: check_mk
Branch: master
Commit: 3bbe9028148026f398e6cc53600ebaba82dedab7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3bbe9028148026…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 28 20:16:12 2015 +0100
Fixed rendering inactive togglebuttons
---
web/htdocs/images/togglebutton_check_down_lo.png | Bin 653 -> 602 bytes
web/htdocs/views.py | 5 ++++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/images/togglebutton_check_down_lo.png
b/web/htdocs/images/togglebutton_check_down_lo.png
index ba24f0a..730161e 100644
Binary files a/web/htdocs/images/togglebutton_check_down_lo.png and
b/web/htdocs/images/togglebutton_check_down_lo.png differ
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 0cd270d..ad9d264 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1444,6 +1444,7 @@ def view_optiondial(view, option, choices, help):
def view_optiondial_off(option):
html.write('<div class="optiondial off %s"></div>' %
option)
+# FIXME: Consolidate toggle rendering functions
def toggler(id, icon, help, onclick, value, hidden = False):
html.begin_context_buttons() # just to be sure
hide = hidden and ' style="display:none"' or ''
@@ -1471,12 +1472,14 @@ def ajax_set_viewoption():
vo[view_name][option] = value
config.save_user_file("viewoptions", vo)
+# FIXME: Consolidate toggle rendering functions
def togglebutton_off(id, icon, hidden = False):
html.begin_context_buttons()
hide = hidden and ' style="display:none"' or ''
html.write('<div id="%s_off" class="togglebutton off
%s"%s>'
- '<img src="images/icon_%s.png"></div>' %
(id, icon, icon, hide))
+ '<img src="images/icon_%s.png"></div>' %
(id, icon, hide, icon))
+# FIXME: Consolidate toggle rendering functions
def togglebutton(id, isopen, icon, help, hidden = False):
html.begin_context_buttons()
if isopen: