summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejandroluis24@gmail.com>2016-04-06 20:35:02 -0300
committerAlejandro Rodríguez <alejandroluis24@gmail.com>2016-04-20 22:12:43 -0300
commit0f925714d04a4d2e86db3a752fc8c1fc45da2214 (patch)
tree04b4e44ff32f6e966905ae2117f52c12fef3a3b2 /app
parentec71edfeddc403df5dcff1300e3f4868554c5f61 (diff)
downloadgitlab-ce-0f925714d04a4d2e86db3a752fc8c1fc45da2214.tar.gz
Inserting the Milestone title between quotes on GFM auto complete
This is due to the fact that for multiple word titles it might be an invalid reference without the quotes
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/gfm_auto_complete.js.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/gfm_auto_complete.js.coffee b/app/assets/javascripts/gfm_auto_complete.js.coffee
index 0f2c5a6241c..41dba342107 100644
--- a/app/assets/javascripts/gfm_auto_complete.js.coffee
+++ b/app/assets/javascripts/gfm_auto_complete.js.coffee
@@ -90,7 +90,7 @@ GitLab.GfmAutoComplete =
alias: 'milestones'
searchKey: 'search'
displayTpl: @Milestones.template
- insertTpl: '${atwho-at}${title}'
+ insertTpl: '${atwho-at}"${title}"'
callbacks:
beforeSave: (milestones) ->
$.map milestones, (m) ->