Skip to content

Commit 4cfda02

Browse files
authored
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>
1 parent 55a8f45 commit 4cfda02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/repo-editor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function initRepoEditor() {
7272
hideElem($('.quick-pull-branch-name'));
7373
document.querySelector('.quick-pull-branch-name input').required = false;
7474
}
75-
$('#commit-button').text($(this).attr('button_text'));
75+
$('#commit-button').text(this.getAttribute('button_text'));
7676
});
7777

7878
const joinTreePath = ($fileNameEl) => {

0 commit comments

Comments
 (0)