diff options
author | yp05327 <576951401@qq.com> | 2023-04-20 18:28:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 05:28:27 -0400 |
commit | 8ea33baa1ce49168f74f7588f858c2f8327d5bfb (patch) | |
tree | 1d032c369e16177d4519cc2aa401933ae3bcdae9 /web_src/js/features/repo-issue.js | |
parent | 6793ef00692aee3d73d5e37ded0b8cff6b4c1029 (diff) | |
download | gitea-8ea33baa1ce49168f74f7588f858c2f8327d5bfb.tar.gz gitea-8ea33baa1ce49168f74f7588f858c2f8327d5bfb.zip |
Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198)
https://github.com/go-gitea/gitea/pull/24098#issuecomment-1514010690
---------
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/js/features/repo-issue.js')
-rw-r--r-- | web_src/js/features/repo-issue.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js index a6105f7b24..63fae3a37c 100644 --- a/web_src/js/features/repo-issue.js +++ b/web_src/js/features/repo-issue.js @@ -313,7 +313,7 @@ export function initRepoIssueWipTitle() { e.preventDefault(); const $issueTitle = $('#issue_title'); - $issueTitle.focus(); + $issueTitle.trigger('focus'); const value = $issueTitle.val().trim().toUpperCase(); const wipPrefixes = $('.title_wip_desc').data('wip-prefixes'); @@ -573,7 +573,7 @@ export function initRepoIssueTitleEdit() { toggleElem($('#pull-desc-edit')); toggleElem($('.in-edit')); $('#issue-title-wrapper').toggleClass('edit-active'); - $editInput.focus(); + $editInput.trigger('focus'); return false; }; |