mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 04:09:29 +02:00
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:
parent
c124014115
commit
9420d3d0a5
9 changed files with 34 additions and 31 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue