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