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>
(cherry picked from commit bc92478575d9c1e84aa4ba4052dffcdc109a0323)
This commit is contained in:
Yarden Shoham 2024-03-23 01:26:56 +02:00 committed by Earl Warren
parent 598d7c030d
commit 7092ffc5dd
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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);
} }