提交 521af2ea 编写于 作者: K kohsuke

IE apparently defines @disabled on every HTML element, so the null test always...

IE apparently defines @disabled on every HTML element, so the null test always fail, causing the JSON submission to become empty.

This fix is in 1.208.

(issue #1538)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@8656 71c3de6d-444a-0410-be80-ed276b4c234a
上级 487eb6b2
......@@ -728,9 +728,9 @@ function updateDropDownList(sel) {
while (true) {
td.style.display = (show ? "" : "none");
if(show)
td.removeAttribute("disabled");
td.removeAttribute("field-disabled");
else // buildFormData uses this attribute and ignores the contents
td.setAttribute("disabled","true");
td.setAttribute("field-disabled","true");
if (td == f.end) break;
td = td.nextSibling;
}
......@@ -1050,7 +1050,7 @@ function buildFormTree(form) {
if(nameRef!=null)
e = $(nameRef);
if(e.getAttribute("disabled")!=null)
if(e.getAttribute("field-disabled")!=null)
return {}; // this field shouldn't contribute to the final result
var name = e.getAttribute("name");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册