Skip to content

Commit

Permalink
Fix legacy attach previous labels
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 23, 2021
1 parent efdec08 commit 54287e5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions war/src/main/webapp/scripts/hudson-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -835,11 +835,14 @@ function expandButton(e) {
function labelAttachPreviousOnClick() {
var e = $(this).previous();
while (e!=null) {
if (e.tagName=="INPUT") {
e.click();
break;
}
e = e.previous();
if (e.classList.contains("jenkins-radio")) {
e = e.querySelector("input");
}
if (e.tagName=="INPUT") {
e.click();
break;
}
e = e.previous();
}
}

Expand Down

0 comments on commit 54287e5

Please sign in to comment.