quick search is working, with small paginator ajax url hack

This commit is contained in:
naomiaro 2011-01-06 00:23:22 -05:00
parent 101b6fafa6
commit ff02a42514
3 changed files with 50 additions and 22 deletions

View file

@ -8,7 +8,15 @@ function setUpQuickSearch() {
string = $(this).val();
$.post(url, {search: string}, function(json){
var x;
var html;
//hacky way until I can figure out paginator better.
html = json.html.replace(/quick-search\/format\/json/g, "index");
$("#library_content")
.empty()
.append(html);
setUpLibrary();
});
});