Fix: player list navigator refactoring
This commit is contained in:
@@ -52,18 +52,14 @@ class PlayerList {
|
||||
disableItem(item) {
|
||||
$(item.playerID).empty();
|
||||
$(item.playerName).prop("disabled", true);
|
||||
// $(item.playerName).removeClass("bg-secondary");
|
||||
$(item.enterCode).prop("disabled", true);
|
||||
// $(item.enterCode).removeClass("bg-secondary");
|
||||
$(item.editButton).prop("disabled", true);
|
||||
$(item.deleteButton).prop("disabled", true);
|
||||
}
|
||||
|
||||
enableItem(item) {
|
||||
$(item.playerName).prop("disabled", false);
|
||||
// $(item.playerName).addClass("bg-secondary");
|
||||
$(item.enterCode).prop("disabled", false);
|
||||
// $(item.enterCode).addClass("bg-secondary");
|
||||
$(item.editButton).prop("disabled", false);
|
||||
$(item.deleteButton).prop("disabled", false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user