From 817d7692607b95837e2f32ddc61aa64f8cc634d5 Mon Sep 17 00:00:00 2001 From: shlomomdahan <64103471+shlomomdahan@users.noreply.github.com> Date: Mon, 21 Oct 2024 17:16:57 -0400 Subject: [PATCH 1/6] extract JS in tagform.jelly --- .../scm/cvstagging/CvsTagAction/create-another-tag.js | 8 ++++++++ .../hudson/scm/cvstagging/CvsTagAction/tagForm.jelly | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/hudson/scm/cvstagging/CvsTagAction/create-another-tag.js diff --git a/src/main/resources/hudson/scm/cvstagging/CvsTagAction/create-another-tag.js b/src/main/resources/hudson/scm/cvstagging/CvsTagAction/create-another-tag.js new file mode 100644 index 0000000..f720a70 --- /dev/null +++ b/src/main/resources/hudson/scm/cvstagging/CvsTagAction/create-another-tag.js @@ -0,0 +1,8 @@ +document.addEventListener('DOMContentLoaded', () => { + + document.getElementById('create-another-tag-button') + .addEventListener('click', () => { + document.getElementById('tagForm').show(); + document.getElementById('tagButton').style.display = 'none'; + }); +}); diff --git a/src/main/resources/hudson/scm/cvstagging/CvsTagAction/tagForm.jelly b/src/main/resources/hudson/scm/cvstagging/CvsTagAction/tagForm.jelly index 41be59f..f77193d 100644 --- a/src/main/resources/hudson/scm/cvstagging/CvsTagAction/tagForm.jelly +++ b/src/main/resources/hudson/scm/cvstagging/CvsTagAction/tagForm.jelly @@ -86,10 +86,10 @@ THE SOFTWARE.
+- +