Skip to content

Commit

Permalink
Update hudson-behavior.js
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Nov 15, 2021
1 parent 422242e commit 46c2a78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions war/src/main/webapp/scripts/hudson-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -1208,8 +1208,10 @@ function rowvgStartEachRow(recursive,f) {
});

Behaviour.specify("TR.optional-block-start,DIV.tr.optional-block-start", "tr-optional-block-start-div-tr-optional-block-start", ++p, function(e) { // see optionalBlock.jelly
// set start.ref to checkbox in preparation of row-set-end processing
var checkbox = e.down().down().down();
// Get the `input` from the checkbox container
var checkbox = e.querySelector("input[type='checkbox']")

// Set start.ref to checkbox in preparation of row-set-end processing
e.setAttribute("ref", checkbox.id = "cb"+(iota++));
});

Expand Down

0 comments on commit 46c2a78

Please sign in to comment.