refactored search

This commit is contained in:
albert
2013-01-10 17:45:52 -05:00
parent 13271e9bf5
commit 8749c43b3e
85 changed files with 946 additions and 304 deletions

View File

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