summaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authordelvh <leon@kske.dev>2023-02-01 20:14:40 +0100
committerGitHub <noreply@github.com>2023-02-01 13:14:40 -0600
commitb6b8feb3dec19e7bc96bc583acf10c01afca3362 (patch)
tree5bfd5bcae06eef8ef7933c9d99911fb5c0e11565 /web_src/js
parent6ba9ff7b4899f1057ac6e41947951da3e43b6918 (diff)
downloadgitea-b6b8feb3dec19e7bc96bc583acf10c01afca3362.tar.gz
gitea-b6b8feb3dec19e7bc96bc583acf10c01afca3362.zip
Enable `@<user>`- completion popup on the release description textarea (#22359)
For some unknown reason, this was previously disabled. Additionally removed an unused return value.
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/features/repo-release.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/repo-release.js b/web_src/js/features/repo-release.js
index e84cc53d17..7589d108f9 100644
--- a/web_src/js/features/repo-release.js
+++ b/web_src/js/features/repo-release.js
@@ -17,12 +17,12 @@ export function initRepoRelease() {
export function initRepoReleaseEditor() {
const $editor = $('.repository.new.release .content-editor');
if ($editor.length === 0) {
- return false;
+ return;
}
(async () => {
const $textarea = $editor.find('textarea');
- await attachTribute($textarea.get(), {mentions: false, emoji: true});
+ await attachTribute($textarea.get(), {mentions: true, emoji: true});
const easyMDE = await createCommentEasyMDE($textarea);
initCompMarkupContentPreviewTab($editor);
const $dropzone = $editor.parent().find('.dropzone');