/artists: sort autocomplete by post count.
* Add search[order]=post_count param to /artists. * Make autocomplete do a prefix match ordered by post count, so that it works the same way that tag autocomplete does elsewhere.
This commit is contained in:
@@ -53,8 +53,9 @@
|
||||
$.ajax({
|
||||
url: "/artists.json",
|
||||
data: {
|
||||
"search[name]": "*" + req.term + "*",
|
||||
"search[name]": req.term + "*",
|
||||
"search[is_active]": true,
|
||||
"search[order]": "post_count",
|
||||
"limit": 10
|
||||
},
|
||||
method: "get",
|
||||
|
||||
Reference in New Issue
Block a user