Commit 5882ca3c575d330ce9b9d32cddbbd24b7be1befa

Authored by Edmar Moretti
1 parent c2308188

--no commit message

Showing 2 changed files with 9 additions and 3 deletions   Show diff stats
admin/js/core.js
@@ -1371,25 +1371,31 @@ funcaoOK - string com o nome da função que será executada q @@ -1371,25 +1371,31 @@ funcaoOK - string com o nome da função que será executada q
1371 funcaoClose - nome da funcao que será executada quando a janela for fechada. Pode ser "" para escapar. 1371 funcaoClose - nome da funcao que será executada quando a janela for fechada. Pode ser "" para escapar.
1372 1372
1373 titulo - titulo da janela 1373 titulo - titulo da janela
  1374 +
  1375 +modal - boolean
1374 */ 1376 */
1375 -function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo) 1377 +function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo,modal)
1376 { 1378 {
1377 if(arguments.length == 0) 1379 if(arguments.length == 0)
1378 { 1380 {
1379 funcaoOK = ""; 1381 funcaoOK = "";
1380 w = "400px"; 1382 w = "400px";
1381 h = "354px"; 1383 h = "354px";
  1384 + modal == true;
1382 } 1385 }
1383 if(arguments.length < 2) 1386 if(arguments.length < 2)
1384 { 1387 {
1385 w = "400px"; 1388 w = "400px";
1386 h = "354px"; 1389 h = "354px";
  1390 + modal == true;
1387 } 1391 }
1388 if(!titulo){ 1392 if(!titulo){
1389 titulo = "Editor"; 1393 titulo = "Editor";
  1394 + modal == true;
1390 } 1395 }
1391 if(!funcaoClose){ 1396 if(!funcaoClose){
1392 funcaoClose = ""; 1397 funcaoClose = "";
  1398 + modal == true;
1393 } 1399 }
1394 if(!$i("janela_editor")) 1400 if(!$i("janela_editor"))
1395 { 1401 {
@@ -1419,7 +1425,7 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo) @@ -1419,7 +1425,7 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo)
1419 }}} 1425 }}}
1420 ); 1426 );
1421 } 1427 }
1422 - YAHOO.admin.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:true,width:w, overflow:"auto",modal: true,visible:false,constraintoviewport:true } ); 1428 + YAHOO.admin.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:true,width:w, overflow:"auto",modal: modal,visible:false,constraintoviewport:true } );
1423 YAHOO.admin.container.panelEditor.render(); 1429 YAHOO.admin.container.panelEditor.render();
1424 } 1430 }
1425 else 1431 else
admin/js/estat_variavel.js
@@ -758,7 +758,7 @@ i3GEOadmin.variaveis = { @@ -758,7 +758,7 @@ i3GEOadmin.variaveis = {
758 if(tipo == "medidaVariavel"){ 758 if(tipo == "medidaVariavel"){
759 var ins = "", 759 var ins = "",
760 dados = YAHOO.lang.JSON.parse(o.responseText); 760 dados = YAHOO.lang.JSON.parse(o.responseText);
761 - core_montaEditor("","480px","300px","","SQL"); 761 + core_montaEditor("","480px","300px","","Testes",false);
762 ins = "<p><b>Select simples:</b> "+dados.sql; 762 ins = "<p><b>Select simples:</b> "+dados.sql;
763 ins += "<p><b>Mapserver:</b> "+dados.sqlmapserver; 763 ins += "<p><b>Mapserver:</b> "+dados.sqlmapserver;
764 ins += "<p><b>Última URL:</b><div id='ultimaUrl'></div> "; 764 ins += "<p><b>Última URL:</b><div id='ultimaUrl'></div> ";