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