Module: check_mk
Branch: master
Commit: 5618a48d59a24479b17009fa9f7930c51d7d6853
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5618a48d59a244…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Dec 12 13:10:13 2011 +0100
Multisite: Added name based id attribute to form tag
---
web/htdocs/htmllib.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index baafac5..109f48f 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -236,8 +236,8 @@ class html:
onsubmit = ' onsubmit="%s"' % onsubmit
else:
onsubmit = ''
- self.write('<form name=%s class=%s action="%s"
method="%s"%s%s>\n' %
- (name, name, action, method, enctype, onsubmit))
+ self.write('<form id="form_%s" name="%s"
class="%s" action="%s" method="%s"%s%s>\n' %
+ (name, name, name, action, method, enctype, onsubmit))
self.hidden_field("filled_in", name)
if add_transid:
self.hidden_field("_transid", str(self.current_transid()))