Skip to content

Commit

Permalink
Replace deprecated function with standard JS (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynek authored Oct 30, 2023
1 parent b012515 commit d0b138a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/jenkins/scm/api/form/traits/traits.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
})
});
Behaviour.specify(".repeatable-delete", 'traits', 500, function (e) {
var c = findAncestorClass(e, "trait-container");
var c = e.closest(".trait-container");
if (c) {
var btn = YAHOO.widget.Button.getButton(e.id);
if (btn) {
Expand Down

0 comments on commit d0b138a

Please sign in to comment.