Fix: revise code
This commit is contained in:
@@ -35,27 +35,6 @@ class PlayerList {
|
||||
id_list[i].getElementsByClassName("player_delete")
|
||||
);
|
||||
|
||||
// this.listRows[i] = new PlayerListRow(
|
||||
// id_list[i], // span
|
||||
// $(id_list[i]).siblings(".player_name"),
|
||||
// $(id_list[i]).siblings(".player_entercode"),
|
||||
// $(id_list[i]).siblings(".player_edit"),
|
||||
// $(id_list[i]).siblings(".player_delete")
|
||||
// );
|
||||
|
||||
this.disableItem(this.listRows[i]);
|
||||
|
||||
|
||||
// $(id_list[i]).siblings(".player_edit").click(function() {
|
||||
// playerListManager.editPlayer(this);
|
||||
// })
|
||||
|
||||
// $(id_list[i]).siblings(".player_delete").click(function() {
|
||||
// playerListManager.deletePlayer(this);
|
||||
// })
|
||||
|
||||
|
||||
// console.log(id_list[i].editButton);
|
||||
$(this.listRows[i].editButton).click(function() {
|
||||
playerListManager.editPlayer(this);
|
||||
})
|
||||
@@ -65,6 +44,8 @@ class PlayerList {
|
||||
})
|
||||
// console.log(this.listRows[i]);
|
||||
// console.log(this.listRows[i].playerName.val());
|
||||
|
||||
this.disableItem(this.listRows[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user