From 1cf0ab44fd56ea1abc6826909382a6c94fcb8fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 21 Mar 2021 12:45:57 +0100 Subject: [PATCH] MAPG-207 don't use MapGuesser.showmodal for modal 'multi' --- public/static/js/game.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/static/js/game.js b/public/static/js/game.js index 4a60aa5..6b08448 100644 --- a/public/static/js/game.js +++ b/public/static/js/game.js @@ -107,8 +107,8 @@ Game.panoId = data.place.panoId; Game.pov = data.place.pov; + document.getElementById('multi').style.visibility = 'hidden'; document.getElementById('panoCover').style.visibility = 'hidden'; - MapGuesser.hideModal(); Game.startNewRound(); } @@ -153,7 +153,7 @@ Game.panoId = data.place.panoId; Game.pov = data.place.pov; - MapGuesser.hideModal(); + document.getElementById('multi').style.visibility = 'hidden'; Game.resetRound(); Game.startNewRound(); } @@ -188,7 +188,7 @@ Game.multi.token = this.response.token; Game.multi.owner = this.response.owner; - MapGuesser.showModal('multi'); + document.getElementById('multi').style.visibility = 'visible'; if (Game.multi.owner) { document.getElementById('startMultiGameButton').style.display = 'block'; } @@ -721,7 +721,7 @@ return; } - MapGuesser.hideModal(); + document.getElementById('multi').style.visibility = 'hidden'; document.getElementById('loading').style.visibility = 'visible'; MapGuesser.httpRequest('POST', '/multiGame/' + roomId + '/initialData.json', function () { -- 2.45.2