Commit 39852d680af21165f97bfb683c389f8e36bc534c

Authored by Edmar Moretti
1 parent 3226bb82

Remoção do modo Ajax síncrono na inicialização do i3Geo

Showing 2 changed files with 10 additions and 4 deletions   Show diff stats
js/ini_i3geo.js
... ... @@ -311,8 +311,8 @@ var i3GEO = {
311 311 i3GEO.inicia();
312 312 delete i3GEO.parametrosMapa2mashuppar;
313 313 delete i3GEO.configMapa;
314   - delete i3GEO.cria;
315   - delete i3GEO.inicia;
  314 + //delete i3GEO.cria;
  315 + //delete i3GEO.inicia;
316 316 delete i3GEO.init;
317 317 },
318 318 //
... ... @@ -560,7 +560,6 @@ var i3GEO = {
560 560 tamanho[1]
561 561 );
562 562 }
563   -
564 563 },
565 564 /**
566 565 * Function: inicia
... ... @@ -765,7 +764,7 @@ var i3GEO = {
765 764 i3GEO.parametros.w,
766 765 i3GEO.parametros.h);
767 766 }
768   - i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.janela.fechaAguarde()","i3GEO.navega.atualizaEscalaNumerica()"]);
  767 + //i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.janela.fechaAguarde()","i3GEO.navega.atualizaEscalaNumerica()"]);
769 768 },
770 769 /**
771 770 * Executa operações após o mapa ter sido posicionado
... ...
js/php.js
... ... @@ -1216,11 +1216,15 @@ i3GEO.php =
1216 1216 criamapa : function(funcao, parametros) {
1217 1217 var p = i3GEO.configura.locaplic + "/classesphp/mapa_controle.php", par = "funcao=criaMapa&" + parametros, cp = new cpaint();
1218 1218 cp.set_response_type("JSON");
  1219 + //se for true da pau
  1220 + cp.set_async(true);
  1221 + /*
1219 1222 if (i3GEO.util.versaoNavegador() === "FF3") {
1220 1223 cp.set_async(true);
1221 1224 } else {
1222 1225 cp.set_async(false);
1223 1226 }
  1227 + */
1224 1228 cp.set_transfer_mode("POST");
1225 1229 cp.call(p, "criaMapa", funcao, par);
1226 1230 },
... ... @@ -1241,11 +1245,14 @@ i3GEO.php =
1241 1245 par += i3GEO.Interface.ATUAL;
1242 1246 }
1243 1247 cp.set_response_type("JSON");
  1248 + cp.set_async(true);
  1249 + /*
1244 1250 if (i3GEO.util.versaoNavegador() === "FF3") {
1245 1251 cp.set_async(true);
1246 1252 } else {
1247 1253 cp.set_async(false);
1248 1254 }
  1255 + */
1249 1256 cp.set_transfer_mode("POST");
1250 1257 cp.call(p, "iniciaMapa", funcao, par);
1251 1258 },
... ...