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>
pull/29982/head^2
Yarden Shoham 8 months ago committed by GitHub
parent d4ac1bd26e
commit bc92478575
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      web_src/js/components/RepoBranchTagSelector.vue

@ -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…
Cancel
Save