Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-73963] Extract event handlers in CvsTagAction/tagForm.jelly #105

Merged
merged 8 commits into from
Oct 22, 2024
Merged
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 @@ -87,9 +87,9 @@ THE SOFTWARE.
</p>

<j:if test="${h.hasPermission(it.build,it.permission)}">
<st:adjunct includes="hudson.scm.cvstagging.CvsTagAction.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