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

autocomplete.js, sample_set.py, reformat sample_set autocomplete

The data needed to contain an object with the name field for each entry
for the fetchData method to effectively parse the data.
parent 18c0e519
...@@ -130,8 +130,8 @@ VidjilAutoComplete.prototype = { ...@@ -130,8 +130,8 @@ VidjilAutoComplete.prototype = {
} }
var res = $.map(data, function(i) { var res = $.map(data, function(i) {
return { return {
name: i, name: i.name,
search: i search: i.name
}; };
}); });
return res; return res;
......
...@@ -592,7 +592,7 @@ def get_sample_set_list(type): ...@@ -592,7 +592,7 @@ def get_sample_set_list(type):
helper = factory.get_instance(type=type) helper = factory.get_instance(type=type)
for row in query : for row in query :
tmp = helper.get_id_string(row) tmp = helper.get_id_string(row)
ss_list.append(tmp) ss_list.append({'name':tmp})
return ss_list return ss_list
def auto_complete(): def auto_complete():
......
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