mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +00: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
|
@ -98,14 +98,14 @@ const sfc = {
|
|||
$(`#${this.branchForm} input[name="refType"]`).val('branch');
|
||||
}
|
||||
if (this.submitForm) {
|
||||
$(`#${this.branchForm}`).trigger('submit');
|
||||
document.getElementById(this.branchForm).requestSubmit();
|
||||
}
|
||||
this.menuVisible = false;
|
||||
}
|
||||
},
|
||||
createNewBranch() {
|
||||
if (!this.showCreateNewBranch) return;
|
||||
$(this.$refs.newBranchForm).trigger('submit');
|
||||
this.$refs.newBranchForm.requestSubmit();
|
||||
},
|
||||
focusSearchField() {
|
||||
nextTick(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue