fix ajax pagination
This commit is contained in:
parent
a7f091ab83
commit
3d4d97f66c
@ -1,2 +1,6 @@
|
||||
module ApplicationHelper
|
||||
|
||||
# set per_page globally
|
||||
WillPaginate.per_page = 10
|
||||
|
||||
end
|
||||
|
@ -1 +1,2 @@
|
||||
$("#items").html("<%= escape_javascript(render('authors/index')) %>");
|
||||
$(".pagination").find("a").attr("data-remote", true);
|
||||
|
@ -1 +1,2 @@
|
||||
$("#items").html("<%= escape_javascript(render('books/index')) %>");
|
||||
$(".pagination").find("a").attr("data-remote", true);
|
||||
|
@ -1 +1,2 @@
|
||||
$("#items").html("<%= escape_javascript(render('series/index')) %>");
|
||||
$(".pagination").find("a").attr("data-remote", true);
|
||||
|
Loading…
Reference in New Issue
Block a user