mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-19 14:00:02 +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
b668a7bbc8
commit
2929551df7
9 changed files with 34 additions and 31 deletions
|
@ -185,7 +185,7 @@ export function initRepoEditor() {
|
|||
$('#edit-empty-content-modal')
|
||||
.modal({
|
||||
onApprove() {
|
||||
$('.edit.form').trigger('submit');
|
||||
document.querySelector('.edit.form').requestSubmit();
|
||||
},
|
||||
})
|
||||
.modal('show');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue