From 521af2ea3ec00dd6d05734fcb9cc8ddb5bacca25 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 16 Apr 2008 06:13:29 +0000 Subject: [PATCH] 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 --- war/resources/scripts/hudson-behavior.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/war/resources/scripts/hudson-behavior.js b/war/resources/scripts/hudson-behavior.js index df2042d4ea..69f94123d9 100644 --- a/war/resources/scripts/hudson-behavior.js +++ b/war/resources/scripts/hudson-behavior.js @@ -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");