diff options
Diffstat (limited to 'app/assets/javascripts/gfm_auto_complete.js.es6')
-rw-r--r-- | app/assets/javascripts/gfm_auto_complete.js.es6 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/gfm_auto_complete.js.es6 b/app/assets/javascripts/gfm_auto_complete.js.es6 index 7a251678743..3c8ed8f5088 100644 --- a/app/assets/javascripts/gfm_auto_complete.js.es6 +++ b/app/assets/javascripts/gfm_auto_complete.js.es6 @@ -95,7 +95,7 @@ })(this), insertTpl: ':${name}:', data: ['loading'], - skipSpecialCharacterTest: true,
+ skipSpecialCharacterTest: true, callbacks: { sorter: this.DefaultOptions.sorter, filter: this.DefaultOptions.filter, @@ -255,10 +255,10 @@ callbacks: { sorter: this.DefaultOptions.sorter, beforeInsert: this.DefaultOptions.beforeInsert, - beforeSave: function(merges) {
+ beforeSave: function(merges) { return $.map(merges, function(m) { return { - title: sanitize(m.title), + title: gl.utils.sanitize(m.title), color: m.color, search: "" + m.title }; |