Commit 0a6ffd2045703c28866dcacb6e94d0d6b235e373

Authored by Edmar Moretti
1 parent bb2e4968

correção na ferramenta de busca rápida

admin/admin.db
No preview for this file type
classesjs/classe_gadgets.js
... ... @@ -27,7 +27,7 @@ GNU conforme publicada pela Free Software Foundation;
27 27  
28 28 Este programa é distribuído na expectativa de que seja útil,
29 29 porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita
30   -de COMERCIABILIDADE OU ADEQUA�ÃO A UMA FINALIDADE ESPECÍFICA.
  30 +de COMERCIABILIDADE OU ADEQUACAtilde;O A UMA FINALIDADE ESPECÍFICA.
31 31 Consulte a Licença Pública Geral do GNU para mais detalhes.
32 32 Você deve ter recebido uma cópia da Licença Pública Geral do
33 33 GNU junto com este programa; se não, escreva para a
... ...
ferramentas/buscarapida/index.htm
... ... @@ -9,26 +9,29 @@
9 9 <div style="top:5px;left:1px;display:block;width:90%;" id="resultadoTemas" >Buscando no mapa...</div>
10 10 <div style="top:5px;left:1px;display:block;width:90%;" id="resultado" >Buscando fora...</div>
11 11  
12   -<script src="../../classesjs/i3geo_tudo_compacto47.js.php" type="text/javascript"></script>
  12 +<script src="../../classesjs/i3geo_tudo_compacto5.js.php" type="text/javascript"></script>
13 13 <script type="text/javascript" src="index.js"></script>
14 14 <script type="text/javascript">
15 15 try{
16 16 var id = window.parent.i3GEO.gadgets.mostraBuscaRapida.id;
17 17 }
18 18 catch(e){id = "";}
19   -var v = window.parent.document.getElementById("valorBuscaRapida"+id);
20 19  
  20 +var v = window.parent.document.getElementById("valorBuscaRapida"+id);
21 21 if(!v){
22 22 v = window.parent.document.getElementById("valorBuscaRapidabuscaRapida");
23 23 }
24   -i3GEObuscaRapida.inicia(
25   - v.value,
26   - window.parent.i3GEO.configura.locaplic,
27   - i3GEObuscaRapida.montaResultado,
28   - window.parent.i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.servicosexternos,
29   - window.parent.i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.temasmapa,
30   - window.parent.i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google
31   -);
  24 +
  25 +if(v){
  26 + i3GEObuscaRapida.inicia(
  27 + v.value,
  28 + window.parent.i3GEO.configura.locaplic,
  29 + i3GEObuscaRapida.montaResultado,
  30 + window.parent.i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.servicosexternos,
  31 + window.parent.i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.temasmapa,
  32 + window.parent.i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.google
  33 + );
  34 +}
32 35 </script>
33 36 </body>
34 37 </html>
35 38 \ No newline at end of file
... ...
ferramentas/buscarapida/index.js
... ... @@ -194,7 +194,9 @@ i3GEObuscaRapida = {
194 194 }
195 195 );
196 196 }
197   -
  197 + else{
  198 + $i("resultadoGoogle").style.display = "none";
  199 + }
198 200 if(temasmapa === true){
199 201 try{
200 202 var verificaTema = window.parent.i3GEO.arvoreDeCamadas.filtraCamadas("itembuscarapida","","diferente",window.parent.i3GEO.arvoreDeCamadas.CAMADAS);
... ... @@ -202,10 +204,10 @@ i3GEObuscaRapida = {
202 204 alert("Nenhum tema configurado para busca");
203 205 return;
204 206 }
205   - aguarde("block");
  207 + //aguarde("block");
206 208 i3GEO.php.buscaRapida(i3GEObuscaRapida.montaResultadoTemas,locaplic,"temas",palavra);
207 209 }
208   - catch(e){}
  210 + catch(e){alert(e)}
209 211 }
210 212 else{
211 213 if($i("resultadoTemas"))
... ...