From 2decabb79bc4e9704987bd6fd7813906844215da Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 20 Oct 2014 17:24:23 +0000 Subject: [PATCH] - --- admin/js/editormapfile.js | 20 ++++++++++---------- admin/js/editormapfile_conexao.js | 17 +++++++++-------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/admin/js/editormapfile.js b/admin/js/editormapfile.js index 3a0e6b0..969c151 100644 --- a/admin/js/editormapfile.js +++ b/admin/js/editormapfile.js @@ -662,7 +662,7 @@ Altera um mapfile conforme o editor específico de uma característi */ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo,testar) { - var campos = [], par = "", prog = "", temp, re; + var callback,sUrl,i,valor,teste1, valorTeste,campos = [], par = "", prog = "", temp; if(arguments.length < 6){testar = false;} if(tipo == "grupousr"){ campos = []; @@ -692,9 +692,9 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, // //validação // - var valorTeste = $i("extensao").value; + valorTeste = $i("extensao").value; if(valorTeste != ""){ - var teste1 = valorTeste.split(" "); + teste1 = valorTeste.split(" "); if(teste1.length != 4) {alert("Sao necessarios 4 valores em extensao");return;} if(teste1[0]*1 > teste1[2]*1) @@ -702,9 +702,9 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, if(teste1[1]*1 > teste1[3]*1) {alert("ymin maior que ymax em extensao");return;} } - var valorTeste = $i("escala").value; + valorTeste = $i("escala").value; if(valorTeste != ""){ - var teste1 = valorTeste * 1; + teste1 = valorTeste * 1; if(teste1 <= 0){ alert("Valor de escala incorreto"); return; @@ -720,7 +720,7 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, par = "&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer; prog = "../php/editormapfile.php?funcao=alterarConexao"; //codifica o valor de data - var temp = ""; + temp = ""; if($i("data") && $i("data").value != ""){ temp = i3GEO.util.base64encode($i("data").value); } @@ -755,9 +755,9 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, } prog += "&testar="+testar; try{ - for (var i=0;i"} ] }; - var ins = ""; if(dados.colunas != "" && dados.colunas != undefined){ ins += "

O layer possui as seguintes colunas na tabela de atributos: "; @@ -149,8 +150,8 @@ function montaEditorDados(dados) }; $i("metaestat").onchange = function(){ core_desativaforms(idsMetaestat); - valor = $i("metaestat").value, - d = []; + var valor = $i("metaestat").value, + d; if(valor === "SIM"){ d = ["metaestat_id_medida_variavel"]; } -- libgit2 0.21.2