Fix: player list manager

This commit is contained in:
2018-07-04 09:28:43 +09:00
parent 8d9e48af39
commit 4413f0de0b
10 changed files with 175 additions and 138 deletions
+5 -6
View File
@@ -9,8 +9,10 @@
this.lastPageNo = 1;
}
updateNavigator(playerCount) {
this.lastPageNo = Math.ceil( (playerCount + 1) / 10 );
updateNavigator(activePageNo, lastPageNo) {
this.activePageNo = activePageNo;
this.lastPageNo = lastPageNo;
// this.lastPageNo = Math.ceil( (playerCount + 1) / 10 );
$(this.pageNoArea).empty();
@@ -49,7 +51,4 @@
this.playerList.loadPlayerListPage(this.activePageNo);
}
}
}