diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index 51f8073a3176..5c32d3d166cb 100644 --- a/war/src/main/webapp/scripts/hudson-behavior.js +++ b/war/src/main/webapp/scripts/hudson-behavior.js @@ -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(); } }