Skip to content

Commit

Permalink
feat: Adapt JavaScript to the addition of TOS
Browse files Browse the repository at this point in the history
  • Loading branch information
AyakorK committed Dec 8, 2023
1 parent 37121dc commit 52b24c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/packs/src/confirmation_registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ $(document).ready(() => {
}
});

$("#user_tos_agreement").on("change", function(e) {
const tosField = event.target.parentNode.parentNode;
const tosError = tosField.querySelectorAll('.form-error');

if (tosError) {
tosError.forEach(error => {
error.remove();
});
}
});

$(".select-date-container").on("change", function(e) {
const dateField = event.target.parentNode.parentNode;
const dateError = dateField.querySelectorAll('.form-error');
Expand Down

0 comments on commit 52b24c1

Please sign in to comment.