Commit e46982b3d11cc56e257f2eeeb95161151a661085
1 parent
19e16bcb
Exists in
master
and in
7 other branches
Correções na ferramenta tabela e na função de ativação de guias. Inclusão de crí…
…tica da existência de uma guia antes de tentar ativá-la
Showing
7 changed files
with
35 additions
and
27 deletions
Show diff stats
ferramentas/funcoes.js
| ... | ... | @@ -849,5 +849,6 @@ function mostraGuia(guia) |
| 849 | 849 | if ($i("guia"+g+"obj")) |
| 850 | 850 | $i("guia"+g+"obj").style.display="none"; |
| 851 | 851 | } |
| 852 | - $i(guia+"obj").style.display="block"; | |
| 852 | + if ($i(guia+"obj")) | |
| 853 | + {$i(guia+"obj").style.display="block";} | |
| 853 | 854 | } |
| 854 | 855 | \ No newline at end of file | ... | ... |
ferramentas/funcoes_compacto.js
| ... | ... | @@ -105,4 +105,4 @@ function ativaGuias(){ for(g=0;g<12;g++){ if($i("guia"+g)) var gpai=$i("guia"+g) |
| 105 | 105 | gpai.id="guiasYUI"; gpai.className="yui-navset"; var ins='<ul class="yui-nav" style="border-width:0pt 0pt 2px;border-color:rgb(240,240,240)">'; for(g=0;g<12;g++){ if($i("guia"+g)) ins+='<li><a href="#"><em><div id=guia'+g+' style=text-align:center;font-size:10px;left:0px;>'+$i("guia"+g).innerHTML+'</div></em></a></li>';} |
| 106 | 106 | ins+="</ul>"; gpai.innerHTML=ins;} |
| 107 | 107 | function mostraGuia(guia){ for(g=0;g<12;g++){ if($i("guia"+g+"obj")) $i("guia"+g+"obj").style.display="none";} |
| 108 | - $i(guia+"obj").style.display="block";} | |
| 108 | + if($i(guia+"obj")){$i(guia+"obj").style.display="block";}} | ... | ... |
ferramentas/i3geo_tudo_compacto.js
| ... | ... | @@ -106,7 +106,7 @@ function ativaGuias(){ for(g=0;g<12;g++){ if($i("guia"+g)) var gpai=$i("guia"+g) |
| 106 | 106 | gpai.id="guiasYUI"; gpai.className="yui-navset"; var ins='<ul class="yui-nav" style="border-width:0pt 0pt 2px;border-color:rgb(240,240,240)">'; for(g=0;g<12;g++){ if($i("guia"+g)) ins+='<li><a href="#"><em><div id=guia'+g+' style=text-align:center;font-size:10px;left:0px;>'+$i("guia"+g).innerHTML+'</div></em></a></li>';} |
| 107 | 107 | ins+="</ul>"; gpai.innerHTML=ins;} |
| 108 | 108 | function mostraGuia(guia){ for(g=0;g<12;g++){ if($i("guia"+g+"obj")) $i("guia"+g+"obj").style.display="none";} |
| 109 | - $i(guia+"obj").style.display="block";} | |
| 109 | + if($i(guia+"obj")){$i(guia+"obj").style.display="block";}} | |
| 110 | 110 | |
| 111 | 111 | if(typeof YAHOO=="undefined"){var YAHOO={};} |
| 112 | 112 | YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=A[C].split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules;if(!I[A]){I[A]={versions:[],builds:[]};}var B=I[A],H=D.version,G=D.build,F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(var C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var C={ie:0,opera:0,gecko:0,webkit:0};var B=navigator.userAgent,A;if((/KHTML/).test(B)){C.webkit=1;}A=B.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){C.webkit=parseFloat(A[1]);}if(!C.webkit){A=B.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){C.opera=parseFloat(A[1]);}else{A=B.match(/MSIE\s([^;]*)/);if(A&&A[1]){C.ie=parseFloat(A[1]);}else{A=B.match(/Gecko\/([^\s]*)/);if(A){C.gecko=1;A=B.match(/rv:([^\s\)]*)/);if(A&&A[1]){C.gecko=parseFloat(A[1]);}}}}}return C;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C=C+1){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})(); | ... | ... |
ferramentas/i3geo_tudo_compacto.js.php
| ... | ... | @@ -106,7 +106,7 @@ function ativaGuias(){ for(g=0;g<12;g++){ if($i("guia"+g)) var gpai=$i("guia"+g) |
| 106 | 106 | gpai.id="guiasYUI"; gpai.className="yui-navset"; var ins='<ul class="yui-nav" style="border-width:0pt 0pt 2px;border-color:rgb(240,240,240)">'; for(g=0;g<12;g++){ if($i("guia"+g)) ins+='<li><a href="#"><em><div id=guia'+g+' style=text-align:center;font-size:10px;left:0px;>'+$i("guia"+g).innerHTML+'</div></em></a></li>';} |
| 107 | 107 | ins+="</ul>"; gpai.innerHTML=ins;} |
| 108 | 108 | function mostraGuia(guia){ for(g=0;g<12;g++){ if($i("guia"+g+"obj")) $i("guia"+g+"obj").style.display="none";} |
| 109 | - $i(guia+"obj").style.display="block";} | |
| 109 | + if($i(guia+"obj")){$i(guia+"obj").style.display="block";}} | |
| 110 | 110 | |
| 111 | 111 | if(typeof YAHOO=="undefined"){var YAHOO={};} |
| 112 | 112 | YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=A[C].split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C);}else{return false;}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules;if(!I[A]){I[A]={versions:[],builds:[]};}var B=I[A],H=D.version,G=D.build,F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(var C=0;C<F.length;C=C+1){F[C](B);}if(E){E.VERSION=H;E.BUILD=G;}else{YAHOO.log("mainClass is undefined for module "+A,"warn");}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function(){var C={ie:0,opera:0,gecko:0,webkit:0};var B=navigator.userAgent,A;if((/KHTML/).test(B)){C.webkit=1;}A=B.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){C.webkit=parseFloat(A[1]);}if(!C.webkit){A=B.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){C.opera=parseFloat(A[1]);}else{A=B.match(/MSIE\s([^;]*)/);if(A&&A[1]){C.ie=parseFloat(A[1]);}else{A=B.match(/Gecko\/([^\s]*)/);if(A){C.gecko=1;A=B.match(/rv:([^\s\)]*)/);if(A&&A[1]){C.gecko=parseFloat(A[1]);}}}}}return C;}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C=C+1){if(A[C]==B){D=false;break;}}if(D){A.push(B);}}}})(); | ... | ... |
ferramentas/identifica/index.js
| ... | ... | @@ -142,6 +142,7 @@ function identificasistema(exec,t) |
| 142 | 142 | //identifica o tema clicado |
| 143 | 143 | function identifica(tema) |
| 144 | 144 | { |
| 145 | + aguarde("block") | |
| 145 | 146 | var resolucao = $i("resolucao").value; |
| 146 | 147 | window.parent.objmapa.temaAtivo = tema; |
| 147 | 148 | var temp = $i("xy").innerHTML |
| ... | ... | @@ -243,6 +244,7 @@ function mostraf(retorno) |
| 243 | 244 | } |
| 244 | 245 | } |
| 245 | 246 | $i("ocorrencia").innerHTML=res |
| 247 | + aguarde("none") | |
| 246 | 248 | } |
| 247 | 249 | else |
| 248 | 250 | { | ... | ... |
ferramentas/tabela/index.htm
| ... | ... | @@ -16,14 +16,17 @@ |
| 16 | 16 | <span id=geral style="left:0px;top:0px;"> |
| 17 | 17 | <div id=resultadotab style="position:relative;top:5px;left:0px"></div> |
| 18 | 18 | <div id=guia1obj style="width:90%"> |
| 19 | - <div style="position:relative;top:5px;left:0px"> | |
| 20 | - <input style="cursor:pointer" onclick="registrosf()" type=checkbox id=tiporeg CHECKED /> | |
| 21 | - Considerar na listagem apenas a região mostrada no mapa (se essa opção for desmarcada, será considerada a extensão geográfica do mapa inicial) | |
| 22 | - </div> | |
| 23 | - <div style="position:relative;top:5px;left:0px"> | |
| 24 | - <input style="cursor:pointer" onclick="registrosf()" type=checkbox id=tipolista /> | |
| 25 | - Mostrar na listagem apenas os selecionados | |
| 26 | - </div> | |
| 19 | + <table class=lista > | |
| 20 | + <tr> | |
| 21 | + <td><input style="cursor:pointer" onclick="registrosf()" type=checkbox id=tiporeg CHECKED /></td> | |
| 22 | + <td>Considerar na listagem apenas a região mostrada no mapa (se essa opção for desmarcada, será considerada a extensão geográfica do mapa inicial)</td> | |
| 23 | + </tr> | |
| 24 | + <tr> | |
| 25 | + <td><input style="cursor:pointer" onclick="registrosf()" type=checkbox id=tipolista /></td> | |
| 26 | + <td>Mostrar na listagem apenas os selecionados</td> | |
| 27 | + </tr> | |
| 28 | + </table> | |
| 29 | + | |
| 27 | 30 | <div id=combot style="position:relative;top:5px;left:0px;"> |
| 28 | 31 | </div> |
| 29 | 32 | <div id=contador style="background-color:rgb(240,240,240);width:90%;position:relative;top:15px;left:0px;text-align:left"> | ... | ... |
ferramentas/tabela/index.js
| ... | ... | @@ -43,23 +43,25 @@ $i("guia3").onclick = function() |
| 43 | 43 | } |
| 44 | 44 | $i("guia4").onclick = function() |
| 45 | 45 | {mostraGuia("guia4");t0();} |
| 46 | -$i("guia5").onclick = function() | |
| 46 | +if($i("guia5")) | |
| 47 | 47 | { |
| 48 | - mostraGuia("guia5") | |
| 49 | - //monta a lista de itens | |
| 50 | - checkitenseditaveis( | |
| 51 | - tema, | |
| 52 | - function(retorno) | |
| 53 | - { | |
| 54 | - if (retorno.tipo == "dados") | |
| 55 | - {$i("itensrelatorio").innerHTML = retorno.dados} | |
| 56 | - } | |
| 57 | - ,"itensrelatorio" | |
| 58 | - ) | |
| 59 | - comboitens("agrupaItem",tema,function(retorno) | |
| 60 | - {$i("agrupamento").innerHTML = retorno.dados},"agrupamento") | |
| 48 | + $i("guia5").onclick = function() | |
| 49 | + { | |
| 50 | + mostraGuia("guia5") | |
| 51 | + //monta a lista de itens | |
| 52 | + checkitenseditaveis( | |
| 53 | + tema, | |
| 54 | + function(retorno) | |
| 55 | + { | |
| 56 | + if (retorno.tipo == "dados") | |
| 57 | + {$i("itensrelatorio").innerHTML = retorno.dados} | |
| 58 | + } | |
| 59 | + ,"itensrelatorio" | |
| 60 | + ) | |
| 61 | + comboitens("agrupaItem",tema,function(retorno) | |
| 62 | + {$i("agrupamento").innerHTML = retorno.dados},"agrupamento") | |
| 63 | + } | |
| 61 | 64 | } |
| 62 | - | |
| 63 | 65 | //combo com as camadas |
| 64 | 66 | comboCamadas("selCamada",tema,function(retorno) |
| 65 | 67 | { | ... | ... |