Skip to content

Commit

Permalink
Fix Prettier errors (#10102)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Dec 28, 2024
1 parent 56b7c1d commit 5dcb4e6
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions war/src/main/webapp/scripts/hudson-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ function findNext(src, filter) {
function findFormItem(src, name, directionF) {
const name2 = "_." + name; // handles <textbox field="..." /> notation silently
return directionF(src, function (e) {
if (e.tagName === "INPUT" && e.type === "radio" ) {
if (e.tagName === "INPUT" && e.type === "radio") {
if (e.checked === true) {
let r = 0;
while (e.name.substring(r, r + 8) === "removeme") {
Expand All @@ -547,7 +547,7 @@ function findFormItem(src, name, directionF) {
}
return name === e.name.substring(r);
}
return false
return false;
}
return (
(e.tagName === "INPUT" ||
Expand Down Expand Up @@ -734,11 +734,12 @@ function registerValidator(e) {
return;
}

if (c.tagName === 'INPUT' && c.type === "radio") {
document.querySelectorAll(`input[name='${c.name}'][type='radio']`)
.forEach(element => {
if (c.tagName === "INPUT" && c.type === "radio") {
document
.querySelectorAll(`input[name='${c.name}'][type='radio']`)
.forEach((element) => {
element.addEventListener("change", checker.bind(e));
})
});
} else {
c.addEventListener("change", checker.bind(e));
}
Expand Down

0 comments on commit 5dcb4e6

Please sign in to comment.