Skip to content

Commit a1f9d3e

Browse files
authored
[JENKINS-75464] fix enable top button (jenkinsci#10431)
2 parents 851e3e5 + 395b553 commit a1f9d3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/resources/lib/form/repeatable/repeatable.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ var repeatableSupport = {
143143
// called when 'add' button is clicked
144144
onAdd: function (n) {
145145
var addOnTop = false;
146+
if (n.classList.contains("repeatable-add-top")) {
147+
addOnTop = true;
148+
}
146149
while (n.tag == null) {
147150
n = n.parentNode;
148-
if (n.classList.contains("repeatable-add-top")) {
149-
addOnTop = true;
150-
}
151151
}
152152
n.tag.expand(addOnTop);
153153
// Hack to hide tool home when a new tool has some installers.

0 commit comments

Comments
 (0)