Module: check_mk
Branch: master
Commit: 609868d84321ef4f84df2790626cc3a88f694450
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=609868d84321ef…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 16 12:08:14 2016 +0100
Use renamed togglebutton function
Change-Id: Ifc30de4a8f67b71dd6fa317811564a5f2ba8da6e
---
web/plugins/views/availability.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/views/availability.py b/web/plugins/views/availability.py
index 7aab6e5..912a6c1 100644
--- a/web/plugins/views/availability.py
+++ b/web/plugins/views/availability.py
@@ -219,7 +219,7 @@ def render_availability_page(view, datasource, filterheaders,
only_sites, limit)
if display_options.enabled(display_options.B):
html.begin_context_buttons()
- togglebutton("avoptions", html.has_user_errors(),
"painteroptions", _("Configure details of the report"))
+ html.toggle_button("avoptions", html.has_user_errors(),
"painteroptions", _("Configure details of the report"))
html.context_button(_("Status View"), html.makeuri([("mode",
"status")]), "status")
if config.reporting_available() and
config.user.may("general.reporting"):
html.context_button(_("Export as PDF"), html.makeuri([],
filename="report_instant.py"), "report")
@@ -508,7 +508,7 @@ def render_bi_availability(title, aggr_rows):
html.body_start(title,
stylesheets=["pages","views","status", "bi"],
javascripts=['bi'])
html.top_heading(title)
html.begin_context_buttons()
- togglebutton("avoptions", False, "painteroptions",
_("Configure details of the report"))
+ html.toggle_button("avoptions", False, "painteroptions",
_("Configure details of the report"))
html.context_button(_("Status View"), html.makeuri([("mode",
"status")]), "status")
if config.reporting_available() and
config.user.may("general.reporting"):
html.context_button(_("Export as PDF"), html.makeuri([],
filename="report_instant.py"), "report")