forked from Cavemanon/cavepaintings
sort autocomplete by score + show score
This commit is contained in:
@ -18,10 +18,10 @@ $(function(){
|
||||
dataType : 'json',
|
||||
type : 'GET',
|
||||
success : function (data) {
|
||||
response($.map(data, function (item) {
|
||||
response($.map(data, function (count, item) {
|
||||
item = (isNegative ? '-'+item : item);
|
||||
return {
|
||||
label : item,
|
||||
label : item + ' ('+count+')',
|
||||
value : item
|
||||
}
|
||||
}));
|
||||
|
Reference in New Issue
Block a user