sort autocomplete by score + show score

This commit is contained in:
Daku
2016-06-18 13:18:59 +01:00
parent 4bd9ee1c7f
commit 2546621c59
2 changed files with 10 additions and 4 deletions

View File

@ -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
}
}));