fix 17.11

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

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();
}
})
}