summaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/components/RepoBranchTagSelector.vue2
-rw-r--r--web_src/js/features/repo-issue.js4
-rw-r--r--web_src/js/features/repo-legacy.js6
3 files changed, 5 insertions, 7 deletions
diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue
index d8451e8399..38a375aa85 100644
--- a/web_src/js/components/RepoBranchTagSelector.vue
+++ b/web_src/js/components/RepoBranchTagSelector.vue
@@ -1,6 +1,6 @@
<template>
<div class="ui floating filter dropdown custom">
- <button class="branch-dropdown-button gt-ellipsis ui basic small compact button gt-df" @click="menuVisible = !menuVisible" @keyup.enter="menuVisible = !menuVisible">
+ <button class="branch-dropdown-button gt-ellipsis ui basic small compact button gt-df gt-m-0" @click="menuVisible = !menuVisible" @keyup.enter="menuVisible = !menuVisible">
<span class="text gt-df gt-ac gt-mr-2">
<template v-if="release">{{ textReleaseCompare }}</template>
<template v-else>
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) {