summaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
authorHEREYUA <37935145+HEREYUA@users.noreply.github.com>2024-03-27 08:20:10 +0100
committerEarl Warren <contact@earl-warren.org>2024-03-30 07:17:31 +0100
commit8c2559a72603e07fe682efddd698e1fc190b2728 (patch)
tree76700719ad87e0078a7068d2abcc3fd4e4926927 /web_src/js/index.js
parentLoad attachments for code comments (#30124) (diff)
downloadforgejo-8c2559a72603e07fe682efddd698e1fc190b2728.tar.xz
forgejo-8c2559a72603e07fe682efddd698e1fc190b2728.zip
When the title in the issue has a value, set the text cursor at the end of the text. (#30090)
Fix: [#25055](https://github.com/go-gitea/gitea/issues/25055) Before ![image](https://github.com/go-gitea/gitea/assets/37935145/1b89cd7b-4fa3-49aa-9b5e-a8413add436e) After ![image](https://github.com/go-gitea/gitea/assets/37935145/fa808f8d-d3ce-4245-a4fe-dd0282ba3fdf) ps: I've noticed that we are gradually replacing jQuery, so I didn't use jQuery here. (cherry picked from commit 1261dd6742fb7095e51c173ca4641477d81a3634)
Diffstat (limited to '')
-rw-r--r--web_src/js/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index abf0d469d1..4c707486bd 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -13,6 +13,7 @@ import {initImageDiff} from './features/imagediff.js';
import {initRepoMigration} from './features/repo-migration.js';
import {initRepoProject} from './features/repo-projects.js';
import {initTableSort} from './features/tablesort.js';
+import {initAutoFocusEnd} from './features/autofocus-end.js';
import {initAdminUserListSearchForm} from './features/admin/users.js';
import {initAdminConfigs} from './features/admin/config.js';
import {initMarkupAnchors} from './markup/anchors.js';
@@ -122,6 +123,7 @@ onDomReady(() => {
initSshKeyFormParser();
initStopwatch();
initTableSort();
+ initAutoFocusEnd();
initFindFileInRepo();
initCopyContent();