1
0
Fork 0

Remove jQuery .attr from the quick pull request button text (#29916)

- Switched from jQuery `.attr` to plain javascript `.getAttribute`
- Tested the quick pull request button text change functionality and it
works as before

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
(cherry picked from commit 4cfda0241993eabb50ed937dab2ffa7deff3d36e)
This commit is contained in:
Yarden Shoham 2024-03-20 01:44:21 +02:00 committed by Earl Warren
parent 5ed8c86aab
commit f9546aa0f2
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -72,7 +72,7 @@ export function initRepoEditor() {
hideElem($('.quick-pull-branch-name'));
document.querySelector('.quick-pull-branch-name input').required = false;
}
$('#commit-button').text($(this).attr('button_text'));
$('#commit-button').text(this.getAttribute('button_text'));
});
const joinTreePath = ($fileNameEl) => {