unify codestyle

This commit is contained in:
Denis Ryabov 2022-01-19 19:45:05 +03:00
parent 131e562df4
commit 3d71447e5e
1 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
const add_validation = () => {
// Loop over them and prevent submission
[...document.querySelectorAll('.needs-validation')].forEach((form) => {
[...document.querySelectorAll('.needs-validation')].forEach(form => {
form.addEventListener('submit', (event) => {
const form = event.target;
if (form.checkValidity() === false) {
@ -89,7 +89,7 @@
jed_collapse_init = true;
}
jedOptions["rules"].forEach(rule => check(jedOptions["url"], rule));
jedOptions['rules'].forEach(rule => check(jedOptions['url'], rule));
} else {
Joomla.submitform(task);
}