diff --git a/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credential-ok.js b/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credential-ok.js new file mode 100644 index 000000000..97665d0c2 --- /dev/null +++ b/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credential-ok.js @@ -0,0 +1,5 @@ +window.addEventListener("DOMContentLoaded", () => { + document.querySelector(".svn-credential-ok-close").addEventListener("click", () => { + window.close(); + }); +}); diff --git a/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly b/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly index b7fb90b5f..1676d2ce0 100644 --- a/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly +++ b/src/main/resources/hudson/scm/SubversionSCM/DescriptorImpl/credentialOK.jelly @@ -31,7 +31,8 @@ THE SOFTWARE.

${%Authentication was successful. Information is stored in Jenkins now.}

- + + - \ No newline at end of file + diff --git a/src/main/resources/hudson/scm/SubversionTagAction/svn-tagform-update-row.js b/src/main/resources/hudson/scm/SubversionTagAction/svn-tagform-update-row.js new file mode 100644 index 000000000..5c7f2692d --- /dev/null +++ b/src/main/resources/hudson/scm/SubversionTagAction/svn-tagform-update-row.js @@ -0,0 +1,14 @@ +// update the visual feedback depending on the checkbox state +function updateRow(changeEvent) { + const checkbox = changeEvent.target; + checkbox.parentNode.parentNode.style.color = checkbox.checked ? "inherit" : "grey"; + + const index = checkbox.getAttribute("data-index"); + document.querySelector(`input[name="name${index}"]`).disabled = !checkbox.checked; +} + +window.addEventListener("DOMContentLoaded", () => { + document.querySelectorAll(".svn-tagform-tag-checkbox").forEach((checkbox) => { + checkbox.addEventListener("change", updateRow); + }); +}); diff --git a/src/main/resources/hudson/scm/SubversionTagAction/tagForm.jelly b/src/main/resources/hudson/scm/SubversionTagAction/tagForm.jelly index 2f071b735..20a61bfd5 100644 --- a/src/main/resources/hudson/scm/SubversionTagAction/tagForm.jelly +++ b/src/main/resources/hudson/scm/SubversionTagAction/tagForm.jelly @@ -68,6 +68,7 @@ THE SOFTWARE.

${%Create more tags}

+
@@ -78,8 +79,8 @@ THE SOFTWARE.
- +
-