mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-27 03:25:21 +00:00
[JENKINS-75464] fix enable top button (#10431)
This commit is contained in:
1 file changed
+3
-3
@@ -143,11 +143,11 @@ var repeatableSupport = {
|
||||
// called when 'add' button is clicked
|
||||
onAdd: function (n) {
|
||||
var addOnTop = false;
|
||||
if (n.classList.contains("repeatable-add-top")) {
|
||||
addOnTop = true;
|
||||
}
|
||||
while (n.tag == null) {
|
||||
n = n.parentNode;
|
||||
if (n.classList.contains("repeatable-add-top")) {
|
||||
addOnTop = true;
|
||||
}
|
||||
}
|
||||
n.tag.expand(addOnTop);
|
||||
// Hack to hide tool home when a new tool has some installers.
|
||||
|
||||
Reference in new issue
Block a user