From 5dcb4e6d58eb5aaf29c6f681cc9cee1ec1f4a429 Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Sat, 28 Dec 2024 11:58:31 -0800 Subject: [PATCH] Fix Prettier errors (#10102) --- war/src/main/webapp/scripts/hudson-behavior.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/war/src/main/webapp/scripts/hudson-behavior.js b/war/src/main/webapp/scripts/hudson-behavior.js index 408838465797..715984f6ca33 100644 --- a/war/src/main/webapp/scripts/hudson-behavior.js +++ b/war/src/main/webapp/scripts/hudson-behavior.js @@ -538,7 +538,7 @@ function findNext(src, filter) { function findFormItem(src, name, directionF) { const name2 = "_." + name; // handles 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") { @@ -547,7 +547,7 @@ function findFormItem(src, name, directionF) { } return name === e.name.substring(r); } - return false + return false; } return ( (e.tagName === "INPUT" || @@ -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)); }