Commit 8634b4afd853ef61f587766f5f1a17c655c15a79

Authored by Edmar Moretti
1 parent fbff1577
Exists in master

Inclusão de parâmetro para abrir links de uma camada

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
@@ -175,6 +175,8 @@ A:hover { @@ -175,6 +175,8 @@ A:hover {
175 ins = "<H1>Endere&ccedil;o do web service:</H1>"; 175 ins = "<H1>Endere&ccedil;o do web service:</H1>";
176 var re = new RegExp(".htm", "g"); 176 var re = new RegExp(".htm", "g");
177 var servico = window.location.href.replace(re, '.php?'); 177 var servico = window.location.href.replace(re, '.php?');
  178 + //remove variaveis adicionais, se houver
  179 + servico = servico.split("?")[0]+"?";
178 var s = ""; //"tema="+tema; 180 var s = ""; //"tema="+tema;
179 if (botao.name === "metaestat") { 181 if (botao.name === "metaestat") {
180 s = "id_medida_variavel=" + tema.split("_")[1] + "&"; 182 s = "id_medida_variavel=" + tema.split("_")[1] + "&";