From 3da2aa56cd0cff21933bea2b489eb0a658361e56 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 28 Nov 2017 17:21:59 -0200 Subject: [PATCH] Correção na lista de mapas para usar corretamente o link direto sem parâmetros --- mapas/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mapas/index.js b/mapas/index.js index e3b3536..3036666 100755 --- a/mapas/index.js +++ b/mapas/index.js @@ -45,7 +45,7 @@ function verificaMapa(mapa){ + mapa.ID_MAPA; } //constroi o link para o mapa - if(mapa.LINK != ""){ + if(mapa.LINK == ""){ link = i3GEO.configura.locaplic + "/ms_criamapa.php?temasa=" + mapa.TEMAS + "&layers=" + mapa.LIGADOS; if (mapa.EXTENSAO !== "") { link += "&mapext=" + mapa.EXTENSAO; @@ -59,6 +59,12 @@ function verificaMapa(mapa){ "link": mapa.LINK, "copiado": $trad("copiado",g_traducao_mapas) }); + } else { + links.push({ + "nome": "Default", + "link": mapa.LINK, + "copiado": $trad("copiado",g_traducao_mapas) + }); } // verifica se o mapfile esta salvo no banco // diretamente -- libgit2 0.21.2