From 778d637ba7625f4dae8fe2ceb0e0aa5b429b9a02 Mon Sep 17 00:00:00 2001 From: Markus Winter Date: Fri, 26 Jul 2024 23:07:05 +0200 Subject: [PATCH] remove dead yui code (#276) --- .../resources/jenkins/scm/api/form/traits/traits.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/resources/jenkins/scm/api/form/traits/traits.js b/src/main/resources/jenkins/scm/api/form/traits/traits.js index 21ca3be6..5008e417 100644 --- a/src/main/resources/jenkins/scm/api/form/traits/traits.js +++ b/src/main/resources/jenkins/scm/api/form/traits/traits.js @@ -31,17 +31,4 @@ e.querySelectorAll(".trait-section").forEach(traitSectionRule); }) }); - Behaviour.specify(".repeatable-delete", 'traits', 500, function (e) { - var c = e.closest(".trait-container"); - if (c) { - var btn = YAHOO.widget.Button.getButton(e.id); - if (btn) { - btn.on("click", function () { - window.setTimeout(function () { - c.querySelectorAll(".trait-section").forEach(traitSectionRule); - }, 250); - }); - } - } - }); })();