From 103b4faa503f5ac46bea9ae18decb9558adabd36 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 3 Mar 2011 22:34:50 +0000 Subject: [PATCH] --- classesphp/funcoes_gerais.php | 1 + ferramentas/cortina/index.js.php | 2 +- ferramentas/graficointerativo/index.js.php | 2 +- ferramentas/legenda/index.js.php | 16 +++++++++------- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/classesphp/funcoes_gerais.php b/classesphp/funcoes_gerais.php index a651fb2..d08bb50 100644 --- a/classesphp/funcoes_gerais.php +++ b/classesphp/funcoes_gerais.php @@ -685,6 +685,7 @@ Retorno: */ function substituiCon($map_file,$postgis_mapa) { + error_reporting(0); if ((isset($postgis_mapa)) && (file_exists($map_file))) { if (($postgis_mapa != "") || ($postgis_mapa != " ")) diff --git a/ferramentas/cortina/index.js.php b/ferramentas/cortina/index.js.php index 95ce060..d403ea9 100644 --- a/ferramentas/cortina/index.js.php +++ b/ferramentas/cortina/index.js.php @@ -19,7 +19,7 @@ Licenca: GPL2 -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br diff --git a/ferramentas/graficointerativo/index.js.php b/ferramentas/graficointerativo/index.js.php index 6b1a7dd..cdfe133 100644 --- a/ferramentas/graficointerativo/index.js.php +++ b/ferramentas/graficointerativo/index.js.php @@ -21,7 +21,7 @@ Licenca: GPL2 -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br diff --git a/ferramentas/legenda/index.js.php b/ferramentas/legenda/index.js.php index c8cd21d..eb2ef4a 100644 --- a/ferramentas/legenda/index.js.php +++ b/ferramentas/legenda/index.js.php @@ -470,18 +470,20 @@ i3GEOF.legenda = { Modifica a cor de uma classe */ modificaCor: function(id){ - if(!$i("tempCor")){ + var obj = $i("tempCorLegenda"); + if(!obj){ var obj = document.createElement("input"); - obj.id = "tempCor"; + obj.id = "tempCorLegenda"; obj.style.display = "none"; obj.type = "text"; obj.value = ""; document.body.appendChild(obj); + obj.onchange = function(){ + i3GEOF.legenda.aplicaNovaCor($i("tempCorLegenda").name); + }; } - $i("tempCor").onChange = function(){ - eval('i3GEOF.legenda.aplicaNovaCor("'+id+'");'); - } - i3GEO.util.abreCor("","tempCor"); + obj.name = id; + i3GEO.util.abreCor("","tempCorLegenda"); }, aplicaNovaCor: function(id){ if(i3GEOF.legenda.aguarde.visibility === "visible") @@ -494,7 +496,7 @@ i3GEOF.legenda = { i3GEOF.legenda.aguarde.visibility = "hidden"; i3GEOF.legenda.mostralegenda(); }; - i3GEO.php.aplicaCorClasseTema(retorna,i3GEOF.legenda.tema,id,$i("tempCor").value); + i3GEO.php.aplicaCorClasseTema(retorna,i3GEOF.legenda.tema,id,$i("tempCorLegenda").value); }, /* Function: mudaLegenda -- libgit2 0.21.2