From cc25f5d1c92f3c99ada901abc32ad9bcaeb82f36 Mon Sep 17 00:00:00 2001 From: jamie-pate Date: Fri, 16 Sep 2022 13:48:29 -0700 Subject: [PATCH] Remove useless broken "Add" button on credentials-select-control. I don't know if there is a way to get a 'data-url' into the template to actually fix this button. See this change that broke it: https://github.com/jenkinsci/credentials-plugin/commit/9c5bb72106824ea826ba0d5e4d63fe5d2a11aa91#diff-45693b8474f3341b5d603b463cd4c10f4ec301a1c8c1c89b67034ba81056dfc9R44 --- src/main/resources/lib/credentials/select/select.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/resources/lib/credentials/select/select.js b/src/main/resources/lib/credentials/select/select.js index 5334113cd..a95797400 100644 --- a/src/main/resources/lib/credentials/select/select.js +++ b/src/main/resources/lib/credentials/select/select.js @@ -214,10 +214,7 @@ Behaviour.specify("BUTTON.credentials-add-menu", 'credentials-select', -99, func } e=null; }); -Behaviour.specify("BUTTON.credentials-add", 'credentials-select', 0, function (e) { - makeButton(e, e.disabled ? null : window.credentials.add); - e = null; // avoid memory leak -}); + Behaviour.specify("DIV.credentials-select-control", 'credentials-select', 100, function (d) { d = $(d); var buttons = d.getElementsBySelector("INPUT.credentials-select-radio-control");