Commit 39711fe2 authored by Ryan Herbert's avatar Ryan Herbert Committed by Mikaël Salson

autocomplete.js fix tag duplicate filtering

Apparently returning the result of an indexOf in the filter callback
doesn't correctly evaluate to true or false... This seems to work
better.
parent 31305e8a
......@@ -210,7 +210,7 @@ VidjilAutoComplete.prototype = {
if (res < 0) {
seen.push(elem.name);
}
return res;
return res < 0;
})
$input.atwho('load', at, loaded_data);
......
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