0.0.146 routes

This commit is contained in:
SBD
2025-02-04 19:27:36 +03:00
parent 8e2f5f6bac
commit eff021b4e2
5 changed files with 25 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
function chooseCheckbox(el) {
function chooseCheckbox(el, callback) {
if (!el) return;
resetFieldError(el);
@@ -6,6 +6,7 @@ function chooseCheckbox(el) {
let $checkbox = $parent.querySelector('.checkbox')
$checkbox.classList.toggle("checked");
if (callback) callback($checkbox.classList.contains('checked'));
}
function getFormData(form, formData=new FormData()) {