提交 77fb186b 编写于 作者: K kohsuke

See http://d.hatena.ne.jp/ssogabe/20090201

<select> tag should be thought of as a part of the form input field

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14989 71c3de6d-444a-0410-be80-ed276b4c234a
上级 cbdbbf46
......@@ -2665,8 +2665,10 @@ Form.Methods = {
form = $(form);
var inputs = form.getElementsByTagName('input');
var textareas = form.getElementsByTagName('textarea');
// KK patch
var selects = form.getElementsByTagName('select');
if (!typeName && !name) return $A(inputs).concat($A(textareas)).map(Element.extend);
if (!typeName && !name) return $A(inputs).concat($A(textareas)).concat($A(selects)).map(Element.extend);
var matchingInputs = [];
......@@ -2680,6 +2682,7 @@ Form.Methods = {
};
f(inputs);
f(textareas);
f(selects);
return matchingInputs;
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册