quick search is working, with small paginator ajax url hack
This commit is contained in:
parent
101b6fafa6
commit
ff02a42514
3 changed files with 50 additions and 22 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue