Module: check_mk
Branch: master
Commit: ee57c752fb295d3329c661801645ddbf68b3fa9e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ee57c752fb295d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Jun 18 14:17:52 2011 +0200
sidebar: fix malfunctioning buttons
---
web/plugins/sidebar/shipped.py | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index 96f387a..1e772d8 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -805,9 +805,7 @@ div#check_mk_sidebar table.master_control td.disabled a {
""" % snapin_width
}
-def ajax_switch_masterstate(h):
- global html
- html = h
+def ajax_switch_masterstate():
site = html.var("site")
column = html.var("switch")
state = int(html.var("state"))
@@ -905,18 +903,14 @@ def page_edit_bookmark():
html.footer()
-def ajax_del_bookmark(h):
- global html
- html = h
+def ajax_del_bookmark():
num = int(html.var("num"))
bookmarks = load_bookmarks()
del bookmarks[num]
save_bookmarks(bookmarks)
render_bookmarks()
-def ajax_add_bookmark(h):
- global html
- html = h
+def ajax_add_bookmark():
title = html.var("title")
href = html.var("href")
if title and href: