diff options
Diffstat (limited to 'web_src/js/features')
-rw-r--r-- | web_src/js/features/repo-issue.js | 4 | ||||
-rw-r--r-- | web_src/js/features/repo-legacy.js | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js index 63fae3a37c..265eceab59 100644 --- a/web_src/js/features/repo-issue.js +++ b/web_src/js/features/repo-issue.js @@ -572,8 +572,10 @@ export function initRepoIssueTitleEdit() { toggleElem($('#pull-desc')); toggleElem($('#pull-desc-edit')); toggleElem($('.in-edit')); + toggleElem($('.new-issue-button')); $('#issue-title-wrapper').toggleClass('edit-active'); - $editInput.trigger('focus'); + $editInput[0].focus(); + $editInput[0].select(); return false; }; diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index 851a9b855e..c3bd0ccb76 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -469,11 +469,7 @@ export function initRepository() { return; } - // File list and commits - if ($('.repository.file.list').length > 0 || $('.branch-dropdown').length > 0 || - $('.repository.commits').length > 0 || $('.repository.release').length > 0) { - initRepoBranchTagSelector('.js-branch-tag-selector'); - } + initRepoBranchTagSelector('.js-branch-tag-selector'); // Options if ($('.repository.settings.options').length > 0) { |