mirror of
https://github.com/go-gitea/gitea
synced 2024-11-18 23:09:30 +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>
This commit is contained in:
parent
d4ac1bd26e
commit
bc92478575
@ -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 New Issue
Block a user