|
|
|
@ -121,8 +121,11 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
function setupPaginator() {
|
|
|
|
|
function appendPageNumber(ev, data) {
|
|
|
|
|
var el = data.after ? data.after : data.before,
|
|
|
|
|
page = Math.ceil((el.attr('data-index') - 1) / config.postsPerPage),
|
|
|
|
|
var el = data.after ? data.after : data.before;
|
|
|
|
|
if (!el) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var page = Math.ceil((el.attr('data-index') - 1) / config.postsPerPage),
|
|
|
|
|
handle = $('<div class="page-number pointer">' + page + '</div>'),
|
|
|
|
|
shadow = $('<div class="shadow"></div>');
|
|
|
|
|
|
|
|
|
|