Commit f971cd18 authored by Ryan Herbert's avatar Ryan Herbert

autocomplete.js fix loading highlight for samples

Correctly display "loading" while data is being loaded from the server
parent 995bd6ad
Pipeline #30051 passed with stages
in 6 minutes and 25 seconds
......@@ -157,6 +157,10 @@ VidjilAutoComplete.prototype = {
// code modified from atwho source
callbacks.highlighter = function(li, query) {
var def = VidjilAutoComplete.defaultLoadingData[0];
if (li.substr(4, def.length) == def) {
return li;
}
var mapper = {'p': 'patient',
'r': 'run',
's': 'generic'}
......
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