Merge pull request 'MAPG-207 don't use MapGuesser.showmodal for modal 'multi'' (#12) from bugfix/MAPG-207-prevent-closing-multi-modal into develop
All checks were successful
default-pipeline default-pipeline #50
All checks were successful
default-pipeline default-pipeline #50
Reviewed-on: https://gitea.e5tv.hu/esoko/mapguesser/pulls/12
This commit is contained in:
commit
71681f1e55
@ -107,8 +107,8 @@
|
|||||||
Game.panoId = data.place.panoId;
|
Game.panoId = data.place.panoId;
|
||||||
Game.pov = data.place.pov;
|
Game.pov = data.place.pov;
|
||||||
|
|
||||||
|
document.getElementById('multi').style.visibility = 'hidden';
|
||||||
document.getElementById('panoCover').style.visibility = 'hidden';
|
document.getElementById('panoCover').style.visibility = 'hidden';
|
||||||
MapGuesser.hideModal();
|
|
||||||
|
|
||||||
Game.startNewRound();
|
Game.startNewRound();
|
||||||
}
|
}
|
||||||
@ -153,7 +153,7 @@
|
|||||||
Game.panoId = data.place.panoId;
|
Game.panoId = data.place.panoId;
|
||||||
Game.pov = data.place.pov;
|
Game.pov = data.place.pov;
|
||||||
|
|
||||||
MapGuesser.hideModal();
|
document.getElementById('multi').style.visibility = 'hidden';
|
||||||
Game.resetRound();
|
Game.resetRound();
|
||||||
Game.startNewRound();
|
Game.startNewRound();
|
||||||
}
|
}
|
||||||
@ -188,7 +188,7 @@
|
|||||||
Game.multi.token = this.response.token;
|
Game.multi.token = this.response.token;
|
||||||
Game.multi.owner = this.response.owner;
|
Game.multi.owner = this.response.owner;
|
||||||
|
|
||||||
MapGuesser.showModal('multi');
|
document.getElementById('multi').style.visibility = 'visible';
|
||||||
if (Game.multi.owner) {
|
if (Game.multi.owner) {
|
||||||
document.getElementById('startMultiGameButton').style.display = 'block';
|
document.getElementById('startMultiGameButton').style.display = 'block';
|
||||||
}
|
}
|
||||||
@ -721,7 +721,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
MapGuesser.hideModal();
|
document.getElementById('multi').style.visibility = 'hidden';
|
||||||
document.getElementById('loading').style.visibility = 'visible';
|
document.getElementById('loading').style.visibility = 'visible';
|
||||||
|
|
||||||
MapGuesser.httpRequest('POST', '/multiGame/' + roomId + '/initialData.json', function () {
|
MapGuesser.httpRequest('POST', '/multiGame/' + roomId + '/initialData.json', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user