MAPG-207 don't use MapGuesser.showmodal for modal 'multi' #12

Merged
bence merged 1 commits from bugfix/MAPG-207-prevent-closing-multi-modal into develop 2021-03-21 12:47:35 +01:00
Showing only changes of commit 1cf0ab44fd - Show all commits

View File

@ -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 () {