This commit is contained in:
Toks
2013-06-19 11:24:10 -04:00
parent 233f4fe675
commit e7995d2768
4 changed files with 8 additions and 8 deletions

View File

@@ -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, " "),

View File

@@ -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, " "),

View File

@@ -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, " "),

View File

@@ -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, " "),