fix ajax pagination

This commit is contained in:
Meutel 2015-06-29 20:08:57 +02:00
parent a7f091ab83
commit 3d4d97f66c
4 changed files with 7 additions and 0 deletions

View File

@ -1,2 +1,6 @@
module ApplicationHelper
# set per_page globally
WillPaginate.per_page = 10
end

View File

@ -1 +1,2 @@
$("#items").html("<%= escape_javascript(render('authors/index')) %>");
$(".pagination").find("a").attr("data-remote", true);

View File

@ -1 +1,2 @@
$("#items").html("<%= escape_javascript(render('books/index')) %>");
$(".pagination").find("a").attr("data-remote", true);

View File

@ -1 +1,2 @@
$("#items").html("<%= escape_javascript(render('series/index')) %>");
$(".pagination").find("a").attr("data-remote", true);