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:
Yarden Shoham 2024-03-23 01:26:56 +02:00 committed by GitHub
parent d4ac1bd26e
commit bc92478575
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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