Module: check_mk
Branch: master
Commit: 7975154db0e3dc2128f2cd97e604606e0f7690fe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7975154db0e3dc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 22 14:27:46 2013 +0100
Easier debugging for help switch (added feedback message)
---
web/htdocs/help.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/help.py b/web/htdocs/help.py
index 03bea37..f7afddf 100644
--- a/web/htdocs/help.py
+++ b/web/htdocs/help.py
@@ -27,4 +27,6 @@
import config
def ajax_switch_help():
- config.save_user_file("help", html.var("enabled", "")
!= "")
+ state = html.var("enabled", "") != ""
+ config.save_user_file("help", state)
+ html.write("%r" % state)