Fix: revise code
This commit is contained in:
@@ -133,12 +133,13 @@ function loadPlayerListPage(pageNo) {
|
||||
}
|
||||
|
||||
// console.log(replyJSON["PlayerList"]);
|
||||
updatePlayerListPage(replyJSON["PlayerList"]);
|
||||
// updatePlayerListPage(replyJSON["PlayerList"]);
|
||||
addPlayerList.updatePlayerList(replyJSON["PlayerList"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function updatePlayerListPage(playerList) {
|
||||
function updatePlayerList(playerList) {
|
||||
for(let i = 0; i < 10; i++) {
|
||||
let listIndex = i + 1; // index 0 : list title
|
||||
|
||||
@@ -242,9 +243,4 @@ function addPlayer() {
|
||||
loadPlayerListPage(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function deletePlayer(id) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user