Module: check_mk
Branch: master
Commit: 2da2b047cc47120c97205613dd36eb485d1ad755
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2da2b047cc4712…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri May 25 12:41:24 2012 +0200
Fixed js syntax error when using i18n
---
web/htdocs/views.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 6647385..6cd06e4 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1536,6 +1536,8 @@ def view_optiondial(view, option, choices, help):
value = vo.get(option, view.get(option, choices[0][0]))
title = dict(choices).get(value, value)
html.begin_context_buttons() # just to be sure
+ # Remove unicode strings
+ choices = [ [c[0], str(c[1])] for c in choices ]
html.write('<div title="%s" id="optiondial_%s"
class="optiondial %s val_%s"'
'onclick="view_dial_option(this, \'%s\', \'%s\',
%r);"><div>%s</div></div>' % (
help, option, option, value, view["name"], option, choices, title))