Don't forget to clear the text message when refreshing players and to synchronise the button state according to the result of the filtering

This commit is contained in:
Tissevert 2019-12-23 22:32:52 +01:00
parent 596a3cc453
commit 7c2b88e4bd
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ Screen.Hall = function(modules) {
function refreshPlayers() {
modules.dom.clear(players.list);
players.message.textContent = '';
var name = form.them.value;
them = null;
var filtered = modules.room.filter(name);
@ -103,6 +104,7 @@ Screen.Hall = function(modules) {
name.length > 0 ? "notFound" : "alone"
);
}
modules.ui.enableForm('room', them != undefined);
}
function refreshGames() {