Skip to content

Commit

Permalink
[JENKINS-73962] Extract event handlers in `LegacyTagAction/tagForm.je…
Browse files Browse the repository at this point in the history
…lly` (#106)
  • Loading branch information
shlomomdahan authored Oct 22, 2024
1 parent d2deb0a commit 96760ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
document.addEventListener("DOMContentLoaded", function () {
document.querySelector("#tagButton input").addEventListener("click", function () {
document.getElementById("tagForm").style.display = "block";
document.getElementById("tagButton").style.display = "none";
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ THE SOFTWARE.
</p>

<j:if test="${h.hasPermission(it.build,it.permission)}">
<st:adjunct includes="hudson.scm.cvstagging.LegacyTagAction.create-another-tag"/>
<p id="tagButton">
<input type="button" value="${%Create another tag}"
onclick="Element.show('tagForm');Element.hide('tagButton')"/>
<input type="button" value="${%Create another tag}"/>
</p>

<div id="tagForm" style="display:none;">
Expand Down

0 comments on commit 96760ed

Please sign in to comment.