Commit 5882ca3c575d330ce9b9d32cddbbd24b7be1befa
1 parent
c2308188
Exists in
master
and in
7 other branches
--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 | 1371 | funcaoClose - nome da funcao que será executada quando a janela for fechada. Pode ser "" para escapar. |
1372 | 1372 | |
1373 | 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 | 1379 | if(arguments.length == 0) |
1378 | 1380 | { |
1379 | 1381 | funcaoOK = ""; |
1380 | 1382 | w = "400px"; |
1381 | 1383 | h = "354px"; |
1384 | + modal == true; | |
1382 | 1385 | } |
1383 | 1386 | if(arguments.length < 2) |
1384 | 1387 | { |
1385 | 1388 | w = "400px"; |
1386 | 1389 | h = "354px"; |
1390 | + modal == true; | |
1387 | 1391 | } |
1388 | 1392 | if(!titulo){ |
1389 | 1393 | titulo = "Editor"; |
1394 | + modal == true; | |
1390 | 1395 | } |
1391 | 1396 | if(!funcaoClose){ |
1392 | 1397 | funcaoClose = ""; |
1398 | + modal == true; | |
1393 | 1399 | } |
1394 | 1400 | if(!$i("janela_editor")) |
1395 | 1401 | { |
... | ... | @@ -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 | 1429 | YAHOO.admin.container.panelEditor.render(); |
1424 | 1430 | } |
1425 | 1431 | else | ... | ... |
admin/js/estat_variavel.js
... | ... | @@ -758,7 +758,7 @@ i3GEOadmin.variaveis = { |
758 | 758 | if(tipo == "medidaVariavel"){ |
759 | 759 | var ins = "", |
760 | 760 | dados = YAHOO.lang.JSON.parse(o.responseText); |
761 | - core_montaEditor("","480px","300px","","SQL"); | |
761 | + core_montaEditor("","480px","300px","","Testes",false); | |
762 | 762 | ins = "<p><b>Select simples:</b> "+dados.sql; |
763 | 763 | ins += "<p><b>Mapserver:</b> "+dados.sqlmapserver; |
764 | 764 | ins += "<p><b>Última URL:</b><div id='ultimaUrl'></div> "; | ... | ... |