You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by kb...@apache.org on 2017/09/22 13:29:48 UTC

atlas git commit: ATLAS-2167 : UI - Redirection of Pagination gives issue if user enter Page No. which does not exists

Repository: atlas
Updated Branches:
  refs/heads/master 301383167 -> 454eb66a3


ATLAS-2167 : UI - Redirection of Pagination gives issue if user enter Page No. which does not exists


Project: http://git-wip-us.apache.org/repos/asf/atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/454eb66a
Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/454eb66a
Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/454eb66a

Branch: refs/heads/master
Commit: 454eb66a3a5d877ca495a5b048d1f5d064c1f6b3
Parents: 3013831
Author: kevalbhatt <kb...@apache.org>
Authored: Fri Sep 22 16:55:29 2017 +0530
Committer: kevalbhatt <kb...@apache.org>
Committed: Fri Sep 22 18:59:29 2017 +0530

----------------------------------------------------------------------
 dashboardv2/public/js/views/search/SearchResultLayoutView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/454eb66a/dashboardv2/public/js/views/search/SearchResultLayoutView.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/views/search/SearchResultLayoutView.js b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
index 4ab6501..f20dc6e 100644
--- a/dashboardv2/public/js/views/search/SearchResultLayoutView.js
+++ b/dashboardv2/public/js/views/search/SearchResultLayoutView.js
@@ -389,7 +389,7 @@ define(['require',
                             var pageNumber = that.activePage + 1;
                             if (goToPage) {
                                 pageNumber = goToPage;
-                                that.offset = that.offset - ((parseInt(pageNumber, 10) - 1) * that.limit);
+                                that.offset = (that.activePage - 1) * that.limit;
                             } else {
                                 that.ui.nextData.attr('disabled', true);
                                 that.offset = that.offset - that.limit;