Skip to content

Commit

Permalink
Merge pull request #60 from ResidenciaTICBrisa/developer
Browse files Browse the repository at this point in the history
BUGFIX: Removendo código duplicado
  • Loading branch information
WillxBernardo authored Apr 7, 2024
2 parents e9ec8a8 + 922bec5 commit eccbf83
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions plugin-prototipo/assets/js/script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// Inicializa o mapa quando a página for carregada
var map;
var marcador;
Expand Down Expand Up @@ -80,11 +79,11 @@ function voltar() {
}

function exit_page(){
//destroyMapForm();
destroyMapForm();
document.getElementById('div_form').style.display='none';
document.getElementById('div_index').style.display='none';
document.getElementById('div_exit').style.display='block';
//exit_page_map;
exit_page_map();
}

// Função para inicializar o mapa no formulário
Expand Down Expand Up @@ -164,10 +163,5 @@ window.onload = function() {

// Função que permite voltar da tela final para a tela inicial - no momento está recarregando a página, mas idealmente deve recarregar só o container do plugin
function preencher_novamente(){
/*destroyExitMap();
document.getElementById('div_exit').style.display = 'none';
document.getElementById('div_form').style.display = 'none';
document.getElementById('div_index').style.display = 'block';
initMap();*/
window.location.reload();
}

0 comments on commit eccbf83

Please sign in to comment.