From 98c9089f5239cca1bd9abb05bf73a43aad61237e Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Fri, 22 Mar 2024 20:32:31 +0000 Subject: [PATCH] Remove jQuery `.attr` from the branch/tag selector - 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 --- web_src/js/components/RepoBranchTagSelector.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue index 588c05990a8a6..34e88596090ae 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); }