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>
pull/29917/head^2
Yarden Shoham 8 months ago committed by GitHub
parent 55a8f4510a
commit 4cfda02419
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      web_src/js/features/repo-editor.js

@ -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) => {

Loading…
Cancel
Save