mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 07:05:55 +00:00
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
This commit is contained in:
1 parent
487eb6b2f4
commit
521af2ea3e
1 file changed
+3
-3
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user