From 3bad67b3fd1e0e9b6e4cf881f163230c7eb58bce Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 9 Mar 2010 20:03:16 +0000 Subject: [PATCH] --- ferramentas/buscarapida/index.js | 4 ++-- ferramentas/googlemaps/index.php | 5 +++-- ferramentas/graficointerativo/index.js.php | 2 +- ferramentas/i3geo_tudo_compacto.js | 4 ++-- ferramentas/i3geo_tudo_compacto.js.php | 4 ++-- ferramentas/opcoes_legenda/index.js.php | 2 +- ferramentas/selecao/index.js.php | 6 +++++- ferramentas/tabela/index.js.php | 7 +++++-- ferramentas/wiki/index.js.php | 2 +- 9 files changed, 22 insertions(+), 14 deletions(-) diff --git a/ferramentas/buscarapida/index.js b/ferramentas/buscarapida/index.js index 8825f8c..2a2cfe9 100644 --- a/ferramentas/buscarapida/index.js +++ b/ferramentas/buscarapida/index.js @@ -248,7 +248,7 @@ i3GEObuscaRapida = { }; var ext = i3GEO.util.wkt2ext(wkt,"polygon"); if(ext == false){alert("wkt invalido");return;} - try{window.parent.objaguarde.abre("i3GEO.atualiza","Aguarde...");}catch(e){} + try{window.parent.objaguarde.abre("i3GEO.atualiza","Aguarde...");}catch(e){if(typeof(console) !== 'undefined'){console.error(e);}} i3GEO.php.mudaext(adicionaCamada(layer,gid,nm,ext),window.parent.i3GEO.configura.tipoimagem,ext,i3GEObuscaRapida.locaplic,window.parent.i3GEO.configura.sid); }, /* @@ -288,7 +288,7 @@ i3GEObuscaRapida = { if(!window.parent.i3GEO){return;} if(!window.parent.i3GEO.calculo){return;} } - catch(e){return;} + catch(e){if(typeof(console) !== 'undefined'){console.error(e);};return;} var ext = i3GEO.util.wkt2ext(wkt,"polygon"); if(ext == false){alert("wkt invalido");return;} var ext = ext.split(" "); diff --git a/ferramentas/googlemaps/index.php b/ferramentas/googlemaps/index.php index ddc48f9..8e7f7d1 100644 --- a/ferramentas/googlemaps/index.php +++ b/ferramentas/googlemaps/index.php @@ -49,7 +49,7 @@ function inicializa(){ map.removeOverlay(wmsmap); wmsmap = new GGroundOverlay(criaWMS(), map.getBounds()); map.addOverlay(wmsmap); - }catch(x){} + }catch(x){if(typeof(console) !== 'undefined'){console.error(x);}} } }); GEvent.addListener(map, "dragend", function() { @@ -58,7 +58,7 @@ function inicializa(){ map.removeOverlay(wmsmap); wmsmap = new GGroundOverlay(criaWMS(), map.getBounds()); map.addOverlay(wmsmap); - }catch(x){} + }catch(x){if(typeof(console) !== 'undefined'){console.error(x);}} } }); function botaoI3geo() {} @@ -76,6 +76,7 @@ function inicializa(){ catch(x){ wmsmap = new GGroundOverlay(criaWMS(), map.getBounds()); map.addOverlay(wmsmap); + if(typeof(console) !== 'undefined'){console.error(x);} } }); diff --git a/ferramentas/graficointerativo/index.js.php b/ferramentas/graficointerativo/index.js.php index b1d84bb..943e061 100644 --- a/ferramentas/graficointerativo/index.js.php +++ b/ferramentas/graficointerativo/index.js.php @@ -692,7 +692,7 @@ i3GEOF.graficointerativo = { } tabela.innerHTML = ins; } - catch(e){} + catch(e){if(typeof(console) !== 'undefined'){console.error(e);}} }, /* Function: ativaNavegacao diff --git a/ferramentas/i3geo_tudo_compacto.js b/ferramentas/i3geo_tudo_compacto.js index 28b6d0a..993e731 100644 --- a/ferramentas/i3geo_tudo_compacto.js +++ b/ferramentas/i3geo_tudo_compacto.js @@ -6917,7 +6917,7 @@ i3GEO.util = { if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaBotaoAplicar()");} try {clearTimeout(tempoBotaoAplicar);} - catch(e){} + catch(e){if(typeof(console) !== 'undefined'){console.error(e);}} var novoel,xy; tempoBotaoAplicar = eval("setTimeout('"+nomeFuncao+"\(\)',(i3GEO.configura.tempoAplicar))"); autoRedesenho("reinicia"); @@ -8137,7 +8137,7 @@ i3GEO.util = { else {temp = {dados:"

Ocorreu um erro
",tipo:"erro"};} eval("funcao(temp);"); - }catch(e){alert(e);} + }catch(e){if(typeof(console) !== 'undefined'){console.error(e);}} }; if(tipoLista === "ligados"){ if(i3GEO.arvoreDeCamadas.CAMADAS !== ""){ diff --git a/ferramentas/i3geo_tudo_compacto.js.php b/ferramentas/i3geo_tudo_compacto.js.php index cdb055f..1611093 100644 --- a/ferramentas/i3geo_tudo_compacto.js.php +++ b/ferramentas/i3geo_tudo_compacto.js.php @@ -6917,7 +6917,7 @@ i3GEO.util = { if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaBotaoAplicar()");} try {clearTimeout(tempoBotaoAplicar);} - catch(e){} + catch(e){if(typeof(console) !== 'undefined'){console.error(e);}} var novoel,xy; tempoBotaoAplicar = eval("setTimeout('"+nomeFuncao+"\(\)',(i3GEO.configura.tempoAplicar))"); autoRedesenho("reinicia"); @@ -8137,7 +8137,7 @@ i3GEO.util = { else {temp = {dados:"

Ocorreu um erro
",tipo:"erro"};} eval("funcao(temp);"); - }catch(e){alert(e);} + }catch(e){if(typeof(console) !== 'undefined'){console.error(e);}} }; if(tipoLista === "ligados"){ if(i3GEO.arvoreDeCamadas.CAMADAS !== ""){ diff --git a/ferramentas/opcoes_legenda/index.js.php b/ferramentas/opcoes_legenda/index.js.php index 523ed50..eeb84db 100644 --- a/ferramentas/opcoes_legenda/index.js.php +++ b/ferramentas/opcoes_legenda/index.js.php @@ -60,7 +60,7 @@ i3GEOF.opcoesLegenda = { i3GEO.util.comboFontes("i3GEOopcoesLegendafonte","i3GEOopcoesLegendafontef"); i3GEOF.opcoesLegenda.parametrosAtuais(); } - catch(erro){} + catch(erro){if(typeof(console) !== 'undefined'){console.error(erro);}} }, /* Function: html diff --git a/ferramentas/selecao/index.js.php b/ferramentas/selecao/index.js.php index 5c927ee..d01dc5c 100644 --- a/ferramentas/selecao/index.js.php +++ b/ferramentas/selecao/index.js.php @@ -496,7 +496,11 @@ i3GEOF.selecao = { tipo = $i("i3GEOselecaotipoOperacao").value; i3GEOF.selecao.porbox(i3GEO.temaAtivo,tipo,v); } - catch(e){limpa.call();return;} + catch(e){ + if(typeof(console) !== 'undefined'){console.error(e);} + limpa.call(); + return; + } } }, /* diff --git a/ferramentas/tabela/index.js.php b/ferramentas/tabela/index.js.php index 0e4d848..005c06a 100644 --- a/ferramentas/tabela/index.js.php +++ b/ferramentas/tabela/index.js.php @@ -494,7 +494,10 @@ i3GEOF.tabela = { } } i3GEOF.tabela.aguarde.visibility = "hidden"; - }catch(e){i3GEOF.tabela.aguarde.visibility = "hidden";} + }catch(e){ + i3GEOF.tabela.aguarde.visibility = "hidden"; + if(typeof(console) !== 'undefined'){console.error(e);} + } }, /* Function: ordenaColuna @@ -542,7 +545,7 @@ i3GEOF.tabela = { $i("i3GEOtabelaregistros").innerHTML = ins+""; i3GEOF.tabela.aguarde.visibility = "hidden"; } - catch(e){i3GEOF.tabela.aguarde.visibility = "hidden";} + catch(e){i3GEOF.tabela.aguarde.visibility = "hidden";if(typeof(console) !== 'undefined'){console.error(e);}} }, excluiLinha: function(celula){ var p = celula.parentNode.parentNode; diff --git a/ferramentas/wiki/index.js.php b/ferramentas/wiki/index.js.php index f8ffeda..73de92d 100644 --- a/ferramentas/wiki/index.js.php +++ b/ferramentas/wiki/index.js.php @@ -61,7 +61,7 @@ i3GEOF.wiki = { } i3GEOF.wiki.lista(); } - catch(erro){alert(erro);} + catch(erro){if(typeof(console) !== 'undefined'){console.error(erro);}} }, /* Function: html -- libgit2 0.21.2