fixes #1763
This commit is contained in:
@@ -18,11 +18,11 @@
|
||||
$.ajax({
|
||||
url: "/artists.json",
|
||||
data: {
|
||||
"search[name]": "*" + req.term + "*"
|
||||
"search[name]": "*" + req.term + "*",
|
||||
"limit": 10
|
||||
},
|
||||
method: "get",
|
||||
success: function(data) {
|
||||
data = data.slice(0, 10);
|
||||
resp($.map(data, function(tag) {
|
||||
return {
|
||||
label: tag.name.replace(/_/g, " "),
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
url: "/pools.json",
|
||||
data: {
|
||||
"search[is_active]": "true",
|
||||
"search[name_matches]": req.term
|
||||
"search[name_matches]": req.term,
|
||||
"limit": 10
|
||||
},
|
||||
method: "get",
|
||||
success: function(data) {
|
||||
data = data.slice(0, 10);
|
||||
resp($.map(data, function(tag) {
|
||||
return {
|
||||
label: tag.name.replace(/_/g, " "),
|
||||
|
||||
@@ -54,11 +54,11 @@
|
||||
url: "/tags.json",
|
||||
data: {
|
||||
"search[order]": "count",
|
||||
"search[name_matches]": term + "*"
|
||||
"search[name_matches]": term + "*",
|
||||
"limit": 10
|
||||
},
|
||||
method: "get",
|
||||
success: function(data) {
|
||||
data = data.slice(0, 10);
|
||||
resp($.map(data, function(tag) {
|
||||
return {
|
||||
label: tag.name.replace(/_/g, " "),
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
$.ajax({
|
||||
url: "/wiki_pages.json",
|
||||
data: {
|
||||
"search[title]": "*" + req.term + "*"
|
||||
"search[title]": "*" + req.term + "*",
|
||||
"limit": 10
|
||||
},
|
||||
method: "get",
|
||||
success: function(data) {
|
||||
data = data.slice(0, 10);
|
||||
resp($.map(data, function(tag) {
|
||||
return {
|
||||
label: tag.title.replace(/_/g, " "),
|
||||
|
||||
Reference in New Issue
Block a user