From 22c799427451a96ba2204d5e5b9e369ecdd1fb25 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 23 Sep 2014 15:18:59 +0000 Subject: [PATCH] Exemplo de inclusao do manu suspenso --- classesjs/classe_gadgets.js | 17 +++-------------- exemplos/cursodsv15.htm | 4 ++++ exemplos/cursodsv16.htm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ exemplos/index.html | 2 ++ 4 files changed, 63 insertions(+), 14 deletions(-) create mode 100644 exemplos/cursodsv16.htm diff --git a/classesjs/classe_gadgets.js b/classesjs/classe_gadgets.js index 7b51994..41ea35a 100644 --- a/classesjs/classe_gadgets.js +++ b/classesjs/classe_gadgets.js @@ -89,18 +89,7 @@ i3GEO.gadgets = { "mostraHistoricoZoom": {idhtml:"historicozoom"}, - //inclui opção admin - try{ - if(i3GEO.parametros.editor === "sim"){ - i3GEO.configura.oMenuData.menu.push({nome:"Admin",id:"i3GeoAdmin"}); - i3GEO.configura.oMenuData.submenus.i3GeoAdmin = [ - {id:"omenudataAdmin1",text: "Página principal", url: "javascript:var w = window.open(i3GEO.configura.locaplic+'/admin/index.html')" }, - {id:"omenudataAdmin2",text: "Catálogo", url: "javascript:var w = window.open(i3GEO.configura.locaplic+'/admin/html/arvore.html')" }, - {id:"omenudataAdmin3",text: "Menus", url: "javascript:i3GEO.arvoreDeTemas.abrejanelaIframe('900','700','"+i3GEO.configura.locaplic+"/admin/html/menus.html\')"} - ]; - } - } - catch(e){} + "mostraMenuSuspenso": {marcadores: true, permiteLogin: true,idhtml:"menus",deslocaEsquerda:0,finaliza:"",parametrosYUI={}}, @@ -336,7 +325,7 @@ i3GEO.gadgets = { {id = i3GEO.gadgets.PARAMETROS.mostraBuscaRapida.idhtml;} i3GEO.gadgets.mostraBuscaRapida.id = id; if($i(id)){ - i = "
" + i = "" + "
"; + "
"; ins = ""; @@ -492,7 +481,7 @@ i3GEO.gadgets = { if(!objid) {return;} //cria o menu se ainda não existir - if(objid && objid.innerHTML === ""){ + if(objid && objid.innerHTML.trim() === ""){ try{ if(ms.marcadores === true){ //complementa o array com os dados para o menu de marcadores diff --git a/exemplos/cursodsv15.htm b/exemplos/cursodsv15.htm index d47c49b..16cfb7f 100644 --- a/exemplos/cursodsv15.htm +++ b/exemplos/cursodsv15.htm @@ -23,6 +23,10 @@ /************ Da mesma forma que a arvore de camadas, a arvore do catalogo de temas pode ser inserida em um local qualquer +Diferentes parametros controlam o conteudo da arvore. + +Saiba mais em: http://localhost/i3geo/documentacao/files/classesjs/classe_arvoredetemas-js.html + ************/ i3GEO.idioma.MOSTRASELETOR = false; //para nao mostrar as bandeiras de escolha do idioma diff --git a/exemplos/cursodsv16.htm b/exemplos/cursodsv16.htm new file mode 100644 index 0000000..13753b8 --- /dev/null +++ b/exemplos/cursodsv16.htm @@ -0,0 +1,54 @@ + + + + + +i3GEO - OpenLayers + + + + + + +
+
+
+
+
+
+
+ + + + diff --git a/exemplos/index.html b/exemplos/index.html index 391e3c4..668d917 100644 --- a/exemplos/index.html +++ b/exemplos/index.html @@ -89,6 +89,8 @@ body,td { [14]    [15] +    + [16]

-- libgit2 0.21.2
    "+i+"