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

View file

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