* VRFS-3149 - paginator arrows now working
This commit is contained in:
parent
c8daee4e00
commit
4cadabe19e
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
function registerEvents(paginator) {
|
||||
$('a.page-less', paginator).click(function(e) {
|
||||
var currentPage = parseInt($(this).attr('data-current-page'));
|
||||
var currentPage = parseInt(paginator.attr('data-current-page'));
|
||||
if (currentPage > 0) {
|
||||
var targetPage = currentPage - 1;
|
||||
attemptToMoveToTargetPage(targetPage);
|
||||
|
|
@ -78,7 +78,8 @@
|
|||
});
|
||||
|
||||
$('a.page-more', paginator).click(function(e) {
|
||||
var currentPage = parseInt($(this).attr('data-current-page'));
|
||||
|
||||
var currentPage = parseInt(paginator.attr('data-current-page'));
|
||||
if (currentPage < pages - 1) {
|
||||
var targetPage = currentPage + 1;
|
||||
attemptToMoveToTargetPage(targetPage);
|
||||
|
|
|
|||
Loading…
Reference in New Issue