Commit 454eb66a by kevalbhatt

ATLAS-2167 : UI - Redirection of Pagination gives issue if user enter Page No.…

ATLAS-2167 : UI - Redirection of Pagination gives issue if user enter Page No. which does not exists
parent 30138316
...@@ -389,7 +389,7 @@ define(['require', ...@@ -389,7 +389,7 @@ define(['require',
var pageNumber = that.activePage + 1; var pageNumber = that.activePage + 1;
if (goToPage) { if (goToPage) {
pageNumber = goToPage; pageNumber = goToPage;
that.offset = that.offset - ((parseInt(pageNumber, 10) - 1) * that.limit); that.offset = (that.activePage - 1) * that.limit;
} else { } else {
that.ui.nextData.attr('disabled', true); that.ui.nextData.attr('disabled', true);
that.offset = that.offset - that.limit; that.offset = that.offset - that.limit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment