HBASE-25097 Wrong RIT page number in Master UI (#2458)

Signed-off-by: Viraj Jasani<virajjasani@apache.org>
This commit is contained in:
meiyi 2020-09-25 18:36:41 +08:00 committed by GitHub
parent 687e53b7e4
commit 4f8aa75dca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -120,6 +120,7 @@ int numOfPages = (int) Math.ceil(numOfRITs * 1.0 / ritsPerPage);
</%if>
</div>
<input type="hidden" id ="rit_page_num" value="<% numOfRITs %>" />
<input type="hidden" id ="rit_per_page" value="<% ritsPerPage %>" />
<nav id="rit_pagination"></nav>
</div>
</section>

View File

@ -499,11 +499,12 @@ AssignmentManager assignmentManager = master.getAssignmentManager();
if (!ritTotalNum || ritTotalNum < 1) {
return;
}
var ritPerPage = parseInt($("#rit_per_page").val());
$("#rit_pagination").sPage({
page:1,
total:ritTotalNum,
pageSize:5,
pageSize:ritPerPage,
noData: false,
showPN:true,
prevPage:"prev",