Module: check_mk
Branch: master
Commit: dc8443d282993198d072c766962106ebbb8ba04d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dc8443d2829931…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Sep 7 11:12:26 2016 +0200
Fixed another wrong data serialization to JS
---
web/plugins/sidebar/shipped.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index e6f1950..39fa1c4 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -1833,8 +1833,8 @@ def tag_tree_url(taggroups, taglist, viewname):
def tag_tree_bullet(state, path, leaf):
code = '<div class="tagtree %sstatebullet
state%d"> </div>' % ((leaf and "leaf " or
""), state)
if not leaf:
- code = '<a title="%s"
href="javascript:virtual_host_tree_enter(%r);">' % \
- (_("Display the tree only below this node"),
"|".join(path)) + code + "</a>"
+ code = '<a title="%s"
href="javascript:virtual_host_tree_enter(\'%s\');">%s</a>'
% \
+ (_("Display the tree only below this node"),
"|".join(path), code)
return code + " "
@@ -1922,7 +1922,7 @@ def render_tag_tree():
# Give chance to change one level up, if we are in a subtree
cwd = tree_conf["cwd"].get(tree_conf["tree"])
if cwd:
- upurl = "javascript:virtual_host_tree_enter(%r)" %
"|".join(cwd[:-1])
+ upurl = "javascript:virtual_host_tree_enter('%s')" %
"|".join(cwd[:-1])
html.icon_button(upurl, _("Go up one tree level"), "back")
html.select("vtree", choices, str(tree_conf["tree"]), onchange =
'virtual_host_tree_changed(this)')