Commit 4456b41b authored by Phil Hughes's avatar Phil Hughes Committed by Jacob Schatz

Checks for undefined when inserting autocomplete into textarea

parent 69e72774
...@@ -35,7 +35,7 @@ GitLab.GfmAutoComplete = ...@@ -35,7 +35,7 @@ GitLab.GfmAutoComplete =
$.fn.atwho.default.callbacks.filter(query, data, searchKey) $.fn.atwho.default.callbacks.filter(query, data, searchKey)
beforeInsert: (value) -> beforeInsert: (value) ->
if value.indexOf('undefined') if value.indexOf('undefined') is 1
@at @at
else else
value value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment