Commit 93e9ef4b69a7d83273aa67905212c0d9b18c447c
1 parent
420a7ae2
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
13 additions
and
13 deletions
Show diff stats
ferramentas/selecao/index.js.php
... | ... | @@ -221,7 +221,7 @@ i3GEOF.selecao = { |
221 | 221 | i3GEO.barraDeBotoes.ativaPadrao(); |
222 | 222 | i3GEO.eventos.MOUSECLIQUE.remove("i3GEOF.selecao.clique()"); |
223 | 223 | try{ |
224 | - i3GEO.desenho.richdraw.fecha; | |
224 | + i3GEO.desenho.richdraw.fecha(); | |
225 | 225 | } |
226 | 226 | catch(e){ |
227 | 227 | if(typeof(console) !== 'undefined'){console.error(e);} |
... | ... | @@ -290,7 +290,8 @@ i3GEOF.selecao = { |
290 | 290 | {$i("i3GEOselecaobox").parentNode.style.backgroundColor = "#F5F5F5";} |
291 | 291 | if($i("i3GEOselecaopoli")) |
292 | 292 | {$i("i3GEOselecaopoli").parentNode.style.backgroundColor = "#F5F5F5";} |
293 | - i3GEO.desenho.richdraw.fecha; | |
293 | + try{i3GEO.desenho.richdraw.fecha();} | |
294 | + catch(e){} | |
294 | 295 | }, |
295 | 296 | /* |
296 | 297 | Function: pegaTemasSel |
... | ... | @@ -421,6 +422,7 @@ i3GEOF.selecao = { |
421 | 422 | {alert("Escolha um tema");return;} |
422 | 423 | if(g_tipoacao !== 'selecaobox') |
423 | 424 | {return;} |
425 | + i3GEO.Interface.openlayers.OLpan.deactivate(); | |
424 | 426 | i3geoOL.removeControl(i3GEO.Interface.openlayers.OLpan); |
425 | 427 | i3GEOF.selecao.box.criaBox(); |
426 | 428 | adicionaxyBox = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); |
... | ... | @@ -444,15 +446,13 @@ i3GEOF.selecao = { |
444 | 446 | Cria o DIV que será utilizado para desenhar o box no mapa |
445 | 447 | */ |
446 | 448 | criaBox: function(){ |
447 | - if(i3GEO.Interface.ATUAL !== "openlayers"){ | |
448 | - try{i3GEO.desenho.richdraw.fecha;} | |
449 | - catch(e){ | |
450 | - if(typeof(console) !== 'undefined'){console.error(e);} | |
451 | - } | |
452 | - i3GEO.desenho.criaContainerRichdraw(); | |
453 | - i3GEO.desenho.richdraw.lineColor = "red"; | |
454 | - i3GEO.desenho.richdraw.lineWidth = "2px"; | |
449 | + try{i3GEO.desenho.richdraw.fecha();} | |
450 | + catch(e){ | |
451 | + if(typeof(console) !== 'undefined'){console.error(e);} | |
455 | 452 | } |
453 | + i3GEO.desenho.criaContainerRichdraw(); | |
454 | + i3GEO.desenho.richdraw.lineColor = "red"; | |
455 | + i3GEO.desenho.richdraw.lineWidth = "2px"; | |
456 | 456 | var novoel,temp; |
457 | 457 | if(!$i("i3geoboxSel")){ |
458 | 458 | novoel = document.createElement("div"); |
... | ... | @@ -633,7 +633,7 @@ i3GEOF.selecao = { |
633 | 633 | */ |
634 | 634 | inicia: function(){ |
635 | 635 | try |
636 | - {i3GEO.desenho.richdraw.fecha;} | |
636 | + {i3GEO.desenho.richdraw.fecha();} | |
637 | 637 | catch(e) |
638 | 638 | {if(typeof(console) !== 'undefined'){console.error(e);}} |
639 | 639 | pontosdistobj = []; | ... | ... |
interface/openlayers.htm
... | ... | @@ -100,7 +100,7 @@ |
100 | 100 | </div> |
101 | 101 | </div> |
102 | 102 | </div> |
103 | -<script src="../classesjs/i3geo.js"></script> | |
103 | +<script src="../classesjs/i3geonaocompacto.js"></script> | |
104 | 104 | <script src="../pacotes/openlayers/OpenLayers211.js.php"></script> |
105 | 105 | <!-- estilo necessário para a ferramenta de edição --> |
106 | 106 | <style> | ... | ... |
testainstal.php
... | ... | @@ -166,7 +166,7 @@ echo "Voc&ecirc; pode testar o CGI clicando <a href='".$enderecocgi."' target='_ |
166 | 166 | echo "<br>Escrevendo no diretório temporário..."; |
167 | 167 | $f = @fopen($dir_tmp."/teste.txt",w); |
168 | 168 | @fclose($f); |
169 | -if (file_exists($dir_tmp."/teste.txt")) echo "ok\n"; else saindo("\nNão foi possível gravar no diretório temporário"); | |
169 | +if (file_exists($dir_tmp."/teste.txt")) echo "ok\n"; else saindo("\nNão foi possível gravar no diretório temporário $dir_tmp"); | |
170 | 170 | echo "Existe o geral1.map? "; |
171 | 171 | if(file_exists("$locaplic/aplicmap/geral1.map")) echo "Sim\n"; else {echo "Nao";saindo("geral1.map não encontrado");} |
172 | 172 | echo " \n"; | ... | ... |