aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2024-03-23 01:26:56 +0200
committerGitHub <noreply@github.com>2024-03-22 23:26:56 +0000
commitbc92478575d9c1e84aa4ba4052dffcdc109a0323 (patch)
tree729872a8ce48dd1ac26df99753508a990a542c30 /web_src
parentd4ac1bd26e3ebc8e3bc7e84313e566634b672477 (diff)
downloadgitea-bc92478575d9c1e84aa4ba4052dffcdc109a0323.tar.gz
gitea-bc92478575d9c1e84aa4ba4052dffcdc109a0323.zip
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>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/components/RepoBranchTagSelector.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue
index 588c05990a..34e8859609 100644
--- a/web_src/js/components/RepoBranchTagSelector.vue
+++ b/web_src/js/components/RepoBranchTagSelector.vue
@@ -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);
}