This commit is contained in:
Toks
2013-05-18 16:16:29 -04:00
parent a680555e72
commit 66e871b2aa

View File

@@ -17,7 +17,7 @@
$("#c-pool-elements #a-new input[type=text]").autocomplete({
source: function(req, resp) {
$.getJSON(
"/pools.json?search[name_matches]=" + req.term,
"/pools.json?search[is_active]=true&search[name_matches]=" + req.term,
function(data) {
resp(data.map(function(x) {return x.name.replace(/_/g, " ");}));
}