Module: check_mk
Branch: master
Commit: 8b20c1482f29c3fa01b6a9d1c126e8531baaeda2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8b20c1482f29c3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 2 16:47:15 2011 +0200
Fixed bug in vieweditor
---
web/htdocs/views.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index d20e455..3794ad7 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -712,7 +712,9 @@ def view_edit_column(n, var_prefix, maxnum, allowed, joined = []):
html.write('</td>')
html.write('<td id="%slabel_%d" class=celeft>Column
%d:</td><td>' % (var_prefix, n, n))
html.select("%s%d" % (var_prefix, n), collist, "",
"toggle_join_fields('%s', %d, this)" % (var_prefix, n))
- display = joined and not is_joined_value(collist, "%s%d" % (var_prefix, n))
and 'none' or ''
+ display = 'none'
+ if joined and is_joined_value(collist, "%s%d" % (var_prefix, n)):
+ display = ''
html.write("</td></tr><tr id='%sjoin_index_row%d'
style='display:%s'><td class=celeft>of
Service:</td><td>" % (var_prefix, n, display))
html.text_input("%sjoin_index_%d" % (var_prefix, n))
html.write("</td></tr><tr><td
class=celeft>Link:</td><td>")