chore: enable no-jquery/no-trigger

- A lot of substitution to `.requestSubmit()`.
- Where possible, rewrite some other jquery to vanilla javascript to
ease the linter fix.
This commit is contained in:
Gusted 2025-04-01 04:41:57 +02:00 committed by David Rotermund
parent b668a7bbc8
commit 2929551df7
9 changed files with 34 additions and 31 deletions

View file

@ -38,7 +38,7 @@ export function initCompLabelEdit(selector) {
form.reportValidity();
return false;
}
$('.new-label.form').trigger('submit');
document.querySelector('.new-label.form').requestSubmit();
},
}).modal('show');
return false;
@ -75,7 +75,7 @@ export function initCompLabelEdit(selector) {
form.reportValidity();
return false;
}
$('.edit-label.form').trigger('submit');
document.querySelector('.edit-label.form').requestSubmit();
},
}).modal('show');
return false;