Fix: revise code

This commit is contained in:
2018-07-28 18:00:49 +09:00
parent 7c9439133d
commit 915e73436f
5 changed files with 5 additions and 550 deletions
+2 -21
View File
@@ -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]);
}
}