Skip to content

Commit

Permalink
JENKINS-TODO f:validateButton finds selected radio button
Browse files Browse the repository at this point in the history
  • Loading branch information
timja committed Jan 5, 2024
1 parent 78cdaa9 commit 2d9a276
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion war/src/main/webapp/scripts/hudson-behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -2708,8 +2708,13 @@ function validateButton(checkUrl, paramList, button) {
paramList.split(",").forEach(function (name) {
var p = findPreviousFormItem(button, name);
if (p != null) {
if (p.type == "checkbox") {
if (p.type === "checkbox") {
parameters[name] = p.checked;
} else if (p.type === "radio") {
while (p && !p.checked) {
p = findPreviousFormItem(p, name);
}
parameters[name] = p.value;
} else {
parameters[name] = p.value;
}
Expand Down

0 comments on commit 2d9a276

Please sign in to comment.