mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 23:03:34 +01:00
Remove jQuery .attr
from the branch/tag selector (#30010)
- Switched from jQuery `.attr` to plain javascript `.setAttribute` - Tested the cherry-pick from the branch/tag selector and it works as before Signed-off-by: Yarden Shoham <git@yardenshoham.com> (cherry picked from commit bc92478575d9c1e84aa4ba4052dffcdc109a0323)
This commit is contained in:
parent
598d7c030d
commit
7092ffc5dd
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ const sfc = {
|
|||
this.isViewBranch = false;
|
||||
this.$refs.dropdownRefName.textContent = item.name;
|
||||
if (this.setAction) {
|
||||
$(`#${this.branchForm}`).attr('action', url);
|
||||
document.getElementById(this.branchForm)?.setAttribute('action', url);
|
||||
} else {
|
||||
$(`#${this.branchForm} input[name="refURL"]`).val(url);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue