summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-11-12 11:07:53 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-11-12 11:07:53 +0000
commit4d8748b6a4a38b5165e60be03a50db418c1f6b7c (patch)
tree6c69dc59518e4dc20ba594376ea74f171a0c21c7 /public
parent278b685bc8014cf6d4f46e96d42a16cfd270e095 (diff)
downloadredmine-4d8748b6a4a38b5165e60be03a50db418c1f6b7c.tar.gz
redmine-4d8748b6a4a38b5165e60be03a50db418c1f6b7c.zip
Merged r22419 from trunk to 5.0-stable (#38852).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22426 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 7b2e7725e..dcebb0923 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -1169,7 +1169,12 @@ function inlineAutoComplete(element) {
fillAttr: 'label',
requireLeadingSpace: true,
selectTemplate: function (issue) {
- return '#' + issue.original.id;
+ let leadingHash = "#"
+ // keep ## syntax which is a valid issue syntax to show issue with title.
+ if (this.currentMentionTextSnapshot.charAt(0) === "#") {
+ leadingHash = "##"
+ }
+ return leadingHash + issue.original.id;
},
menuItemTemplate: function (issue) {
return sanitizeHTML(issue.original.label);