summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-11-23 09:02:04 (EST)
committer Winston Prakash2011-12-01 20:47:12 (EST)
commit375fff3f3fc78ef3d6e51cda51b0f7b1f24c4e34 (patch)
tree8eafa1bcea835089b1b9c6faa6e28d08e5f29f7a
parent2e604586156c7a6d8f9551e080b164b88108d4e1 (diff)
downloadorg.eclipse.hudson.core-375fff3f3fc78ef3d6e51cda51b0f7b1f24c4e34.zip
org.eclipse.hudson.core-375fff3f3fc78ef3d6e51cda51b0f7b1f24c4e34.tar.gz
org.eclipse.hudson.core-375fff3f3fc78ef3d6e51cda51b0f7b1f24c4e34.tar.bz2
Resolve issue: section element wasn't opened during page reload
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
-rw-r--r--hudson-war/src/main/webapp/scripts/hudson-behavior.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/hudson-war/src/main/webapp/scripts/hudson-behavior.js b/hudson-war/src/main/webapp/scripts/hudson-behavior.js
index bdb9002..1bbc9ec 100644
--- a/hudson-war/src/main/webapp/scripts/hudson-behavior.js
+++ b/hudson-war/src/main/webapp/scripts/hudson-behavior.js
@@ -760,7 +760,7 @@ var hudsonRules = {
"TR.optional-block-start": function(e) { // see optionalBlock.jelly
// set start.ref to checkbox in preparation of row-set-end processing
- var checkbox = e.firstChild.firstChild;
+ var checkbox = e.firstChild.getElementsByTagName('input')[0];
e.setAttribute("ref", checkbox.id = "cb"+(iota++));
},
@@ -786,7 +786,7 @@ var hudsonRules = {
// this is suffixed by a pointless string so that two processing for optional-block-start
// can sandwitch row-set-end
// this requires "TR.row-set-end" to mark rows
- var checkbox = e.firstChild.firstChild;
+ var checkbox = e.firstChild.getElementsByTagName('input')[0];
updateOptionalBlock(checkbox,false);
},