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-73962] Extract event handlers in LegacyTagAction/tagForm.jelly #106

Merged
merged 9 commits into from
Oct 22, 2024
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