Commit 3bad67b3fd1e0e9b6e4cf881f163230c7eb58bce
1 parent
8ff74011
Exists in
master
and in
7 other branches
--no commit message
Showing
9 changed files
with
22 additions
and
14 deletions
Show diff stats
ferramentas/buscarapida/index.js
... | ... | @@ -248,7 +248,7 @@ i3GEObuscaRapida = { |
248 | 248 | }; |
249 | 249 | var ext = i3GEO.util.wkt2ext(wkt,"polygon"); |
250 | 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 | 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 | 288 | if(!window.parent.i3GEO){return;} |
289 | 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 | 292 | var ext = i3GEO.util.wkt2ext(wkt,"polygon"); |
293 | 293 | if(ext == false){alert("wkt invalido");return;} |
294 | 294 | var ext = ext.split(" "); | ... | ... |
ferramentas/googlemaps/index.php
... | ... | @@ -49,7 +49,7 @@ function inicializa(){ |
49 | 49 | map.removeOverlay(wmsmap); |
50 | 50 | wmsmap = new GGroundOverlay(criaWMS(), map.getBounds()); |
51 | 51 | map.addOverlay(wmsmap); |
52 | - }catch(x){} | |
52 | + }catch(x){if(typeof(console) !== 'undefined'){console.error(x);}} | |
53 | 53 | } |
54 | 54 | }); |
55 | 55 | GEvent.addListener(map, "dragend", function() { |
... | ... | @@ -58,7 +58,7 @@ function inicializa(){ |
58 | 58 | map.removeOverlay(wmsmap); |
59 | 59 | wmsmap = new GGroundOverlay(criaWMS(), map.getBounds()); |
60 | 60 | map.addOverlay(wmsmap); |
61 | - }catch(x){} | |
61 | + }catch(x){if(typeof(console) !== 'undefined'){console.error(x);}} | |
62 | 62 | } |
63 | 63 | }); |
64 | 64 | function botaoI3geo() {} |
... | ... | @@ -76,6 +76,7 @@ function inicializa(){ |
76 | 76 | catch(x){ |
77 | 77 | wmsmap = new GGroundOverlay(criaWMS(), map.getBounds()); |
78 | 78 | map.addOverlay(wmsmap); |
79 | + if(typeof(console) !== 'undefined'){console.error(x);} | |
79 | 80 | } |
80 | 81 | }); |
81 | 82 | ... | ... |
ferramentas/graficointerativo/index.js.php
ferramentas/i3geo_tudo_compacto.js
... | ... | @@ -6917,7 +6917,7 @@ i3GEO.util = { |
6917 | 6917 | if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaBotaoAplicar()");} |
6918 | 6918 | try |
6919 | 6919 | {clearTimeout(tempoBotaoAplicar);} |
6920 | - catch(e){} | |
6920 | + catch(e){if(typeof(console) !== 'undefined'){console.error(e);}} | |
6921 | 6921 | var novoel,xy; |
6922 | 6922 | tempoBotaoAplicar = eval("setTimeout('"+nomeFuncao+"\(\)',(i3GEO.configura.tempoAplicar))"); |
6923 | 6923 | autoRedesenho("reinicia"); |
... | ... | @@ -8137,7 +8137,7 @@ i3GEO.util = { |
8137 | 8137 | else |
8138 | 8138 | {temp = {dados:"<p style=color:red >Ocorreu um erro<br>",tipo:"erro"};} |
8139 | 8139 | eval("funcao(temp);"); |
8140 | - }catch(e){alert(e);} | |
8140 | + }catch(e){if(typeof(console) !== 'undefined'){console.error(e);}} | |
8141 | 8141 | }; |
8142 | 8142 | if(tipoLista === "ligados"){ |
8143 | 8143 | if(i3GEO.arvoreDeCamadas.CAMADAS !== ""){ | ... | ... |
ferramentas/i3geo_tudo_compacto.js.php
... | ... | @@ -6917,7 +6917,7 @@ i3GEO.util = { |
6917 | 6917 | if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaBotaoAplicar()");} |
6918 | 6918 | try |
6919 | 6919 | {clearTimeout(tempoBotaoAplicar);} |
6920 | - catch(e){} | |
6920 | + catch(e){if(typeof(console) !== 'undefined'){console.error(e);}} | |
6921 | 6921 | var novoel,xy; |
6922 | 6922 | tempoBotaoAplicar = eval("setTimeout('"+nomeFuncao+"\(\)',(i3GEO.configura.tempoAplicar))"); |
6923 | 6923 | autoRedesenho("reinicia"); |
... | ... | @@ -8137,7 +8137,7 @@ i3GEO.util = { |
8137 | 8137 | else |
8138 | 8138 | {temp = {dados:"<p style=color:red >Ocorreu um erro<br>",tipo:"erro"};} |
8139 | 8139 | eval("funcao(temp);"); |
8140 | - }catch(e){alert(e);} | |
8140 | + }catch(e){if(typeof(console) !== 'undefined'){console.error(e);}} | |
8141 | 8141 | }; |
8142 | 8142 | if(tipoLista === "ligados"){ |
8143 | 8143 | if(i3GEO.arvoreDeCamadas.CAMADAS !== ""){ | ... | ... |
ferramentas/opcoes_legenda/index.js.php
... | ... | @@ -60,7 +60,7 @@ i3GEOF.opcoesLegenda = { |
60 | 60 | i3GEO.util.comboFontes("i3GEOopcoesLegendafonte","i3GEOopcoesLegendafontef"); |
61 | 61 | i3GEOF.opcoesLegenda.parametrosAtuais(); |
62 | 62 | } |
63 | - catch(erro){} | |
63 | + catch(erro){if(typeof(console) !== 'undefined'){console.error(erro);}} | |
64 | 64 | }, |
65 | 65 | /* |
66 | 66 | Function: html | ... | ... |
ferramentas/selecao/index.js.php
... | ... | @@ -496,7 +496,11 @@ i3GEOF.selecao = { |
496 | 496 | tipo = $i("i3GEOselecaotipoOperacao").value; |
497 | 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 | 494 | } |
495 | 495 | } |
496 | 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 | 503 | Function: ordenaColuna |
... | ... | @@ -542,7 +545,7 @@ i3GEOF.tabela = { |
542 | 545 | $i("i3GEOtabelaregistros").innerHTML = ins+"</table>"; |
543 | 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 | 550 | excluiLinha: function(celula){ |
548 | 551 | var p = celula.parentNode.parentNode; | ... | ... |
ferramentas/wiki/index.js.php