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> </%if>
</div> </div>
<input type="hidden" id ="rit_page_num" value="<% numOfRITs %>" /> <input type="hidden" id ="rit_page_num" value="<% numOfRITs %>" />
<input type="hidden" id ="rit_per_page" value="<% ritsPerPage %>" />
<nav id="rit_pagination"></nav> <nav id="rit_pagination"></nav>
</div> </div>
</section> </section>

View File

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