Skip to content

Commit

Permalink
[JENKINS-73951] Extract event handler from SubversionSCM/DescriptorIm…
Browse files Browse the repository at this point in the history
…pl/credentialOK.jelly
  • Loading branch information
yaroslavafenkin committed Oct 17, 2024
1 parent 783d660 commit db707fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
window.addEventListener("DOMContentLoaded", () => {
document.querySelector(".svn-credential-ok-close").addEventListener("click", () => window.close());
});
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ THE SOFTWARE.
<p>
${%Authentication was successful. Information is stored in Jenkins now.}
</p>
<input type="button" value="${%Close}" class="yui-button" onclick="window.close()" />
<st:adjunct includes="hudson.scm.SubversionSCM.DescriptorImpl.credential-ok"/>
<button class="jenkins-button svn-credential-ok-close">${%Close}</button>
</l:main-panel>
</l:layout>
</j:jelly>

0 comments on commit db707fc

Please sign in to comment.