From db707fc8ec1b1ca2cf8917223f61c365c9b59ad0 Mon Sep 17 00:00:00 2001 From: Yaroslav Afenkin <91559310+yaroslavafenkin@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:32:50 +0300 Subject: [PATCH] [JENKINS-73951] Extract event handler from SubversionSCM/DescriptorImpl/credentialOK.jelly --- .../hudson/scm/SubversionSCM/DescriptorImpl/credential-ok.js | 3 +++ .../hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credential-ok.js diff --git a/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credential-ok.js b/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credential-ok.js new file mode 100644 index 000000000..08c8602da --- /dev/null +++ b/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credential-ok.js @@ -0,0 +1,3 @@ +window.addEventListener("DOMContentLoaded", () => { + document.querySelector(".svn-credential-ok-close").addEventListener("click", () => window.close()); +}); diff --git a/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly b/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly index b7fb90b5f..662703b07 100644 --- a/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly +++ b/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly @@ -31,7 +31,8 @@ THE SOFTWARE.
${%Authentication was successful. Information is stored in Jenkins now.}
- +