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,8 @@
ocument.addEventListener('DOMContentLoaded', () => {
shlomomdahan marked this conversation as resolved.
Show resolved Hide resolved

document.getElementById('create-another-tag-button')
.addEventListener('click', () => {
document.getElementById('tagForm').show();
document.getElementById('tagButton').style.display = 'none';
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ THE SOFTWARE.
</j:forEach>
</p>

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

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