HBASE-25097 Wrong RIT page number in Master UI (#2458)
Signed-off-by: Viraj Jasani<virajjasani@apache.org>
This commit is contained in:
parent
505ceacb4b
commit
0e6775c919
|
@ -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>
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue