fixes #1415
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
$("#c-pool-elements #a-new input[type=text]").autocomplete({
|
$("#c-pool-elements #a-new input[type=text]").autocomplete({
|
||||||
source: function(req, resp) {
|
source: function(req, resp) {
|
||||||
$.getJSON(
|
$.getJSON(
|
||||||
"/pools.json?search[name_matches]=" + req.term,
|
"/pools.json?search[is_active]=true&search[name_matches]=" + req.term,
|
||||||
function(data) {
|
function(data) {
|
||||||
resp(data.map(function(x) {return x.name.replace(/_/g, " ");}));
|
resp(data.map(function(x) {return x.name.replace(/_/g, " ");}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user