Commit 44b5b592f213c7617ada104f92af3ec3021563a2
1 parent
581ee9de
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
7 additions
and
1 deletions
Show diff stats
classesjs/classe_janela.js
| ... | ... | @@ -244,7 +244,7 @@ i3GEO.janela = { |
| 244 | 244 | eval ('YAHOO.aguarde.'+id+' = new YAHOO.widget.Panel("'+id+'",{width:"240px",fixedcenter:false,underlay:"none",close:true,draggable:false,modal:true})'); |
| 245 | 245 | eval ('YAHOO.aguarde.'+id+'.setBody("<span style=font-size:12px; >"+texto+"</span>")'); |
| 246 | 246 | eval ('YAHOO.aguarde.'+id+'.body.style.height="20px"'); |
| 247 | - eval ('YAHOO.aguarde.'+id+'.setHeader("<span><img src="+i3GEO.configura.locaplic+"/imagens/aguarde.gif /></span>")'); | |
| 247 | + eval ('YAHOO.aguarde.'+id+'.setHeader("<span><img id=aguardeGifAberto src="+i3GEO.configura.locaplic+"/imagens/aguarde.gif /></span>")'); | |
| 248 | 248 | eval ('YAHOO.aguarde.'+id+'.render(document.body)'); |
| 249 | 249 | if($i("flamingo")) |
| 250 | 250 | {eval ('YAHOO.aguarde.'+id+'.moveTo(0,0)');} | ... | ... |
classesjs/classe_php.js
| ... | ... | @@ -61,6 +61,10 @@ Muitos dos parâmetros exigidos pelos programas em PHP são obtidos da variável |
| 61 | 61 | de seção aberta no servidor quando o i3Geo é inicializado, é o caso por exemplo do nome |
| 62 | 62 | do arquivo correspondente ao mapfile atualmente em uso |
| 63 | 63 | |
| 64 | +Para evitar que uma chamada AJAX seja executada quando já existe outra em andamento | |
| 65 | +pode-se verificar a existência do id "aguardeGifAberto" (exemplo: if($i("aguardeGifAberto")){return;} ) | |
| 66 | +isso pq a janela de aguarde inclui essa imagem GIF | |
| 67 | + | |
| 64 | 68 | Para mais detalhes sobre as funções, veja <mapa_controle.php> |
| 65 | 69 | */ |
| 66 | 70 | i3GEO.php = { |
| ... | ... | @@ -273,6 +277,7 @@ i3GEO.php = { |
| 273 | 277 | <geo2utm> |
| 274 | 278 | */ |
| 275 | 279 | geo2utm: function(funcao,x,y){ |
| 280 | + if($i("aguardeGifAberto")){return;} | |
| 276 | 281 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=geo2utm&x="+x+"&y="+y+"&g_sid="+i3GEO.configura.sid; |
| 277 | 282 | cpJSON.call(p,"geo2utm",funcao); |
| 278 | 283 | }, | ... | ... |
pacotes/phpflickr/phpFlickr.php
| ... | ... | @@ -195,6 +195,7 @@ class phpFlickr { |
| 195 | 195 | { |
| 196 | 196 | //Sends a request to Flickr's REST endpoint via POST. |
| 197 | 197 | $this->req->setURL($this->REST); |
| 198 | + //echo $this->REST;return; | |
| 198 | 199 | $this->req->clearPostData(); |
| 199 | 200 | if (substr($command,0,7) != "flickr.") { |
| 200 | 201 | $command = "flickr." . $command; | ... | ... |