fix 17.11

This commit is contained in:
Kirill Pet committed 2024-11-17 22:44:34 +03:00
1 parent c344dbcd43
commit 01e6e988e5
3 files changed
+36 -20

No files matched your search

+16
View File
@@ -239,4 +239,20 @@ function inputPhoneNoFlag(input){
})
})
}
inputCheck('.form-agreement__check');
function inputCheck(className) {
let checks = document.querySelectorAll(className);
checks.forEach(check => {
let square = check.querySelector('.form-agreement__square'),
input = check.querySelector('input');
square.onclick = function () {
input.click();
}
})
}