Sanitize issues title in autocomplete for comment
This commit is contained in:
parent
0675552463
commit
65197b8a8a
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ GitLab.GfmAutoComplete =
|
||||||
tpl: @Issues.template
|
tpl: @Issues.template
|
||||||
callbacks:
|
callbacks:
|
||||||
before_save: (issues) ->
|
before_save: (issues) ->
|
||||||
$.map issues, (i) -> id: i.id, title: i.title, search: "#{i.id} #{i.title}"
|
$.map issues, (i) -> id: i.id, title: sanitize(i.title), search: "#{i.id} #{i.title}"
|
||||||
|
|
||||||
input.one "focus", =>
|
input.one "focus", =>
|
||||||
$.getJSON(@dataSource).done (data) ->
|
$.getJSON(@dataSource).done (data) ->
|
||||||
|
|
Loading…
Reference in a new issue