mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-06 23:44:20 -04: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.isViewBranch = false;
|
||||||
this.$refs.dropdownRefName.textContent = item.name;
|
this.$refs.dropdownRefName.textContent = item.name;
|
||||||
if (this.setAction) {
|
if (this.setAction) {
|
||||||
$(`#${this.branchForm}`).attr('action', url);
|
document.getElementById(this.branchForm)?.setAttribute('action', url);
|
||||||
} else {
|
} else {
|
||||||
$(`#${this.branchForm} input[name="refURL"]`).val(url);
|
$(`#${this.branchForm} input[name="refURL"]`).val(url);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user