Fix JS linter
This commit is contained in:
parent
4c53d0b14e
commit
a038d24643
1 changed files with 4 additions and 4 deletions
|
|
@ -10,12 +10,12 @@
|
|||
.forEach(function (form) {
|
||||
form.addEventListener('submit', function (event) {
|
||||
if (!form.checkValidity()) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
form.reportValidity();
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
form.reportValidity()
|
||||
}
|
||||
|
||||
form.classList.add('was-validated');
|
||||
form.classList.add('was-validated')
|
||||
}, false)
|
||||
})
|
||||
})()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue