Skip to content

Commit

Permalink
Change text of submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
entantoencuanto committed Dec 2, 2024
1 parent bc0e0ee commit cbc21f4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ document.addEventListener("DOMContentLoaded", () => {
const messages = JSON.parse(submitButton.dataset.performBlockMessage);
const justificationMessage = form.querySelector("[data-justification-message]");

submitButton.textContent = messages[event.target.checked];

if (event.target.checked) {
submitButton.setAttribute("data-confirm", submitButton.dataset.confirmMessage);
justificationMessage.classList.remove("hidden");
Expand Down

0 comments on commit cbc21f4

Please sign in to comment.