|
|
@ -66,6 +66,7 @@ define(function() {
|
|
|
|
|
|
|
|
|
|
|
|
$('.pagination li.page').remove();
|
|
|
|
$('.pagination li.page').remove();
|
|
|
|
$(html).insertAfter($('.pagination li.previous'));
|
|
|
|
$(html).insertAfter($('.pagination li.previous'));
|
|
|
|
|
|
|
|
|
|
|
|
updatePageLinks();
|
|
|
|
updatePageLinks();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -80,7 +81,7 @@ define(function() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function updatePageLinks() {
|
|
|
|
function updatePageLinks() {
|
|
|
|
if(pagination.pageCount === 0) {
|
|
|
|
if(pagination.pageCount === 0 || pagination.pageCount === 1) {
|
|
|
|
$('.pagination').addClass('hide');
|
|
|
|
$('.pagination').addClass('hide');
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$('.pagination').removeClass('hide');
|
|
|
|
$('.pagination').removeClass('hide');
|
|
|
|