Commit 3bad67b3fd1e0e9b6e4cf881f163230c7eb58bce

Authored by Edmar Moretti
1 parent 8ff74011

--no commit message

ferramentas/buscarapida/index.js
@@ -248,7 +248,7 @@ i3GEObuscaRapida = { @@ -248,7 +248,7 @@ i3GEObuscaRapida = {
248 }; 248 };
249 var ext = i3GEO.util.wkt2ext(wkt,"polygon"); 249 var ext = i3GEO.util.wkt2ext(wkt,"polygon");
250 if(ext == false){alert("wkt invalido");return;} 250 if(ext == false){alert("wkt invalido");return;}
251 - try{window.parent.objaguarde.abre("i3GEO.atualiza","Aguarde...");}catch(e){} 251 + try{window.parent.objaguarde.abre("i3GEO.atualiza","Aguarde...");}catch(e){if(typeof(console) !== 'undefined'){console.error(e);}}
252 i3GEO.php.mudaext(adicionaCamada(layer,gid,nm,ext),window.parent.i3GEO.configura.tipoimagem,ext,i3GEObuscaRapida.locaplic,window.parent.i3GEO.configura.sid); 252 i3GEO.php.mudaext(adicionaCamada(layer,gid,nm,ext),window.parent.i3GEO.configura.tipoimagem,ext,i3GEObuscaRapida.locaplic,window.parent.i3GEO.configura.sid);
253 }, 253 },
254 /* 254 /*
@@ -288,7 +288,7 @@ i3GEObuscaRapida = { @@ -288,7 +288,7 @@ i3GEObuscaRapida = {
288 if(!window.parent.i3GEO){return;} 288 if(!window.parent.i3GEO){return;}
289 if(!window.parent.i3GEO.calculo){return;} 289 if(!window.parent.i3GEO.calculo){return;}
290 } 290 }
291 - catch(e){return;} 291 + catch(e){if(typeof(console) !== 'undefined'){console.error(e);};return;}
292 var ext = i3GEO.util.wkt2ext(wkt,"polygon"); 292 var ext = i3GEO.util.wkt2ext(wkt,"polygon");
293 if(ext == false){alert("wkt invalido");return;} 293 if(ext == false){alert("wkt invalido");return;}
294 var ext = ext.split(" "); 294 var ext = ext.split(" ");
ferramentas/googlemaps/index.php
@@ -49,7 +49,7 @@ function inicializa(){ @@ -49,7 +49,7 @@ function inicializa(){
49 map.removeOverlay(wmsmap); 49 map.removeOverlay(wmsmap);
50 wmsmap = new GGroundOverlay(criaWMS(), map.getBounds()); 50 wmsmap = new GGroundOverlay(criaWMS(), map.getBounds());
51 map.addOverlay(wmsmap); 51 map.addOverlay(wmsmap);
52 - }catch(x){} 52 + }catch(x){if(typeof(console) !== 'undefined'){console.error(x);}}
53 } 53 }
54 }); 54 });
55 GEvent.addListener(map, "dragend", function() { 55 GEvent.addListener(map, "dragend", function() {
@@ -58,7 +58,7 @@ function inicializa(){ @@ -58,7 +58,7 @@ function inicializa(){
58 map.removeOverlay(wmsmap); 58 map.removeOverlay(wmsmap);
59 wmsmap = new GGroundOverlay(criaWMS(), map.getBounds()); 59 wmsmap = new GGroundOverlay(criaWMS(), map.getBounds());
60 map.addOverlay(wmsmap); 60 map.addOverlay(wmsmap);
61 - }catch(x){} 61 + }catch(x){if(typeof(console) !== 'undefined'){console.error(x);}}
62 } 62 }
63 }); 63 });
64 function botaoI3geo() {} 64 function botaoI3geo() {}
@@ -76,6 +76,7 @@ function inicializa(){ @@ -76,6 +76,7 @@ function inicializa(){
76 catch(x){ 76 catch(x){
77 wmsmap = new GGroundOverlay(criaWMS(), map.getBounds()); 77 wmsmap = new GGroundOverlay(criaWMS(), map.getBounds());
78 map.addOverlay(wmsmap); 78 map.addOverlay(wmsmap);
  79 + if(typeof(console) !== 'undefined'){console.error(x);}
79 } 80 }
80 }); 81 });
81 82
ferramentas/graficointerativo/index.js.php
@@ -692,7 +692,7 @@ i3GEOF.graficointerativo = { @@ -692,7 +692,7 @@ i3GEOF.graficointerativo = {
692 } 692 }
693 tabela.innerHTML = ins; 693 tabela.innerHTML = ins;
694 } 694 }
695 - catch(e){} 695 + catch(e){if(typeof(console) !== 'undefined'){console.error(e);}}
696 }, 696 },
697 /* 697 /*
698 Function: ativaNavegacao 698 Function: ativaNavegacao
ferramentas/i3geo_tudo_compacto.js
@@ -6917,7 +6917,7 @@ i3GEO.util = { @@ -6917,7 +6917,7 @@ i3GEO.util = {
6917 if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaBotaoAplicar()");} 6917 if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaBotaoAplicar()");}
6918 try 6918 try
6919 {clearTimeout(tempoBotaoAplicar);} 6919 {clearTimeout(tempoBotaoAplicar);}
6920 - catch(e){} 6920 + catch(e){if(typeof(console) !== 'undefined'){console.error(e);}}
6921 var novoel,xy; 6921 var novoel,xy;
6922 tempoBotaoAplicar = eval("setTimeout('"+nomeFuncao+"\(\)',(i3GEO.configura.tempoAplicar))"); 6922 tempoBotaoAplicar = eval("setTimeout('"+nomeFuncao+"\(\)',(i3GEO.configura.tempoAplicar))");
6923 autoRedesenho("reinicia"); 6923 autoRedesenho("reinicia");
@@ -8137,7 +8137,7 @@ i3GEO.util = { @@ -8137,7 +8137,7 @@ i3GEO.util = {
8137 else 8137 else
8138 {temp = {dados:"<p style=color:red >Ocorreu um erro<br>",tipo:"erro"};} 8138 {temp = {dados:"<p style=color:red >Ocorreu um erro<br>",tipo:"erro"};}
8139 eval("funcao(temp);"); 8139 eval("funcao(temp);");
8140 - }catch(e){alert(e);} 8140 + }catch(e){if(typeof(console) !== 'undefined'){console.error(e);}}
8141 }; 8141 };
8142 if(tipoLista === "ligados"){ 8142 if(tipoLista === "ligados"){
8143 if(i3GEO.arvoreDeCamadas.CAMADAS !== ""){ 8143 if(i3GEO.arvoreDeCamadas.CAMADAS !== ""){
ferramentas/i3geo_tudo_compacto.js.php
@@ -6917,7 +6917,7 @@ i3GEO.util = { @@ -6917,7 +6917,7 @@ i3GEO.util = {
6917 if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaBotaoAplicar()");} 6917 if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaBotaoAplicar()");}
6918 try 6918 try
6919 {clearTimeout(tempoBotaoAplicar);} 6919 {clearTimeout(tempoBotaoAplicar);}
6920 - catch(e){} 6920 + catch(e){if(typeof(console) !== 'undefined'){console.error(e);}}
6921 var novoel,xy; 6921 var novoel,xy;
6922 tempoBotaoAplicar = eval("setTimeout('"+nomeFuncao+"\(\)',(i3GEO.configura.tempoAplicar))"); 6922 tempoBotaoAplicar = eval("setTimeout('"+nomeFuncao+"\(\)',(i3GEO.configura.tempoAplicar))");
6923 autoRedesenho("reinicia"); 6923 autoRedesenho("reinicia");
@@ -8137,7 +8137,7 @@ i3GEO.util = { @@ -8137,7 +8137,7 @@ i3GEO.util = {
8137 else 8137 else
8138 {temp = {dados:"<p style=color:red >Ocorreu um erro<br>",tipo:"erro"};} 8138 {temp = {dados:"<p style=color:red >Ocorreu um erro<br>",tipo:"erro"};}
8139 eval("funcao(temp);"); 8139 eval("funcao(temp);");
8140 - }catch(e){alert(e);} 8140 + }catch(e){if(typeof(console) !== 'undefined'){console.error(e);}}
8141 }; 8141 };
8142 if(tipoLista === "ligados"){ 8142 if(tipoLista === "ligados"){
8143 if(i3GEO.arvoreDeCamadas.CAMADAS !== ""){ 8143 if(i3GEO.arvoreDeCamadas.CAMADAS !== ""){
ferramentas/opcoes_legenda/index.js.php
@@ -60,7 +60,7 @@ i3GEOF.opcoesLegenda = { @@ -60,7 +60,7 @@ i3GEOF.opcoesLegenda = {
60 i3GEO.util.comboFontes("i3GEOopcoesLegendafonte","i3GEOopcoesLegendafontef"); 60 i3GEO.util.comboFontes("i3GEOopcoesLegendafonte","i3GEOopcoesLegendafontef");
61 i3GEOF.opcoesLegenda.parametrosAtuais(); 61 i3GEOF.opcoesLegenda.parametrosAtuais();
62 } 62 }
63 - catch(erro){} 63 + catch(erro){if(typeof(console) !== 'undefined'){console.error(erro);}}
64 }, 64 },
65 /* 65 /*
66 Function: html 66 Function: html
ferramentas/selecao/index.js.php
@@ -496,7 +496,11 @@ i3GEOF.selecao = { @@ -496,7 +496,11 @@ i3GEOF.selecao = {
496 tipo = $i("i3GEOselecaotipoOperacao").value; 496 tipo = $i("i3GEOselecaotipoOperacao").value;
497 i3GEOF.selecao.porbox(i3GEO.temaAtivo,tipo,v); 497 i3GEOF.selecao.porbox(i3GEO.temaAtivo,tipo,v);
498 } 498 }
499 - catch(e){limpa.call();return;} 499 + catch(e){
  500 + if(typeof(console) !== 'undefined'){console.error(e);}
  501 + limpa.call();
  502 + return;
  503 + }
500 } 504 }
501 }, 505 },
502 /* 506 /*
ferramentas/tabela/index.js.php
@@ -494,7 +494,10 @@ i3GEOF.tabela = { @@ -494,7 +494,10 @@ i3GEOF.tabela = {
494 } 494 }
495 } 495 }
496 i3GEOF.tabela.aguarde.visibility = "hidden"; 496 i3GEOF.tabela.aguarde.visibility = "hidden";
497 - }catch(e){i3GEOF.tabela.aguarde.visibility = "hidden";} 497 + }catch(e){
  498 + i3GEOF.tabela.aguarde.visibility = "hidden";
  499 + if(typeof(console) !== 'undefined'){console.error(e);}
  500 + }
498 }, 501 },
499 /* 502 /*
500 Function: ordenaColuna 503 Function: ordenaColuna
@@ -542,7 +545,7 @@ i3GEOF.tabela = { @@ -542,7 +545,7 @@ i3GEOF.tabela = {
542 $i("i3GEOtabelaregistros").innerHTML = ins+"</table>"; 545 $i("i3GEOtabelaregistros").innerHTML = ins+"</table>";
543 i3GEOF.tabela.aguarde.visibility = "hidden"; 546 i3GEOF.tabela.aguarde.visibility = "hidden";
544 } 547 }
545 - catch(e){i3GEOF.tabela.aguarde.visibility = "hidden";} 548 + catch(e){i3GEOF.tabela.aguarde.visibility = "hidden";if(typeof(console) !== 'undefined'){console.error(e);}}
546 }, 549 },
547 excluiLinha: function(celula){ 550 excluiLinha: function(celula){
548 var p = celula.parentNode.parentNode; 551 var p = celula.parentNode.parentNode;
ferramentas/wiki/index.js.php
@@ -61,7 +61,7 @@ i3GEOF.wiki = { @@ -61,7 +61,7 @@ i3GEOF.wiki = {
61 } 61 }
62 i3GEOF.wiki.lista(); 62 i3GEOF.wiki.lista();
63 } 63 }
64 - catch(erro){alert(erro);} 64 + catch(erro){if(typeof(console) !== 'undefined'){console.error(erro);}}
65 }, 65 },
66 /* 66 /*
67 Function: html 67 Function: html