Commit b2c1cd38 authored by Ryan Herbert's avatar Ryan Herbert
Browse files

autocomplete.js remove type identifier from sample display

The type identifier is designed to help with the search string, not
necessarily with the display of information

See #2895
parent a3acb705
......@@ -130,7 +130,7 @@ VidjilAutoComplete.prototype = {
}
var res = $.map(data, function(i) {
return {
name: i.name,
name: i.name.substr(3),
search: i.name
};
});
......@@ -146,6 +146,10 @@ VidjilAutoComplete.prototype = {
return null;
};
callbacks.beforeInsert = function(value) {
return value + ", "
};
$input.atwho({
at: at,
alias: 'samples',
......
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