refactored search
This commit is contained in:
@@ -397,7 +397,7 @@ Danbooru.Note = {
|
||||
var $this = $(this);
|
||||
var id = $this.data("id");
|
||||
if (id.match(/\d/)) {
|
||||
window.location.href = "/note_versions?search[note_id_eq]=" + id;
|
||||
window.location.href = "/note_versions?search[note_id]=" + id;
|
||||
}
|
||||
$(this).dialog("close");
|
||||
}
|
||||
|
||||
@@ -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;}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user