diff options
Diffstat (limited to 'public/javascripts/application.js')
-rw-r--r-- | public/javascripts/application.js | 7 |
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); |