Skip to content

Commit a3c027b

Browse files
authored
Merge pull request #199 from jenkinsci/JENKINS-73306
[JENKINS-73306] fix form not submittable
2 parents 6f0fd16 + dba9adc commit a3c027b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/main/resources/com/sap/prd/jenkins/plugins/agent_maintenance/agent-maintenance.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ function openForm(formName) {
77
title: title,
88
okText: dialog.translations.add,
99
minWidth: "900px",
10-
});
10+
submitButton: false,
11+
}).then(formData => {
12+
buildFormTree(form);
13+
fetch(form.action, {
14+
body: new URLSearchParams(new FormData(form)),
15+
method: "post",
16+
headers: crumb.wrap({
17+
"Content-Type": "application/x-www-form-urlencoded",
18+
}),
19+
});
20+
location.reload();
21+
})
1122
}
1223

1324
function refresh() {

0 commit comments

Comments
 (0)