fix 17.11
This commit is contained in:
@@ -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();
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user