Commit 37bc2a445e69cc73a0f776a6625d66c3247a9ddf
1 parent
ea41e01d
Exists in
master
and in
7 other branches
Inclusão do botão de aplicar alterações no rodapé da janela flutuante
Showing
2 changed files
with
29 additions
and
6 deletions
Show diff stats
ferramentas/legenda/index.js
| ... | ... | @@ -129,22 +129,27 @@ i3GEOF.legenda = |
| 129 | 129 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia1", "i3GEOlegendaguia"); |
| 130 | 130 | // eventos das guias |
| 131 | 131 | $i("i3GEOlegendaguia6").onclick = function() { |
| 132 | + i3GEOF.legenda.ativaAplicar("none"); | |
| 132 | 133 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia6", "i3GEOlegendaguia"); |
| 133 | 134 | }; |
| 134 | 135 | $i("i3GEOlegendaguia1").onclick = function() { |
| 136 | + i3GEOF.legenda.ativaAplicar("none"); | |
| 135 | 137 | i3GEOF.legenda.mostralegenda(); |
| 136 | 138 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia1", "i3GEOlegendaguia"); |
| 137 | 139 | }; |
| 138 | 140 | $i("i3GEOlegendaguia2").onclick = function() { |
| 141 | + i3GEOF.legenda.ativaAplicar("none"); | |
| 139 | 142 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia2", "i3GEOlegendaguia"); |
| 140 | 143 | }; |
| 141 | 144 | $i("i3GEOlegendaguia3").onclick = function() { |
| 142 | 145 | i3GEO.janela.tempoMsg($trad('ajuda', i3GEOF.legenda.dicionario)); |
| 143 | 146 | }; |
| 144 | 147 | $i("i3GEOlegendaguia4").onclick = function() { |
| 148 | + i3GEOF.legenda.ativaAplicar("none"); | |
| 145 | 149 | i3GEOF.legenda.mostraGrafico(); |
| 146 | 150 | }; |
| 147 | 151 | $i("i3GEOlegendaguia5").onclick = function() { |
| 152 | + i3GEOF.legenda.ativaAplicar("none"); | |
| 148 | 153 | i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia5", "i3GEOlegendaguia"); |
| 149 | 154 | }; |
| 150 | 155 | var b = new YAHOO.widget.Button("i3GEOlegendabotao1", { |
| ... | ... | @@ -232,12 +237,7 @@ i3GEOF.legenda = |
| 232 | 237 | } |
| 233 | 238 | }); |
| 234 | 239 | b.addClass("rodar"); |
| 235 | - b = new YAHOO.widget.Button("i3GEOlegendabotao10", { | |
| 236 | - onclick : { | |
| 237 | - fn : i3GEOF.legenda.aplicaEstilo | |
| 238 | - } | |
| 239 | - }); | |
| 240 | - b.addClass("rodar"); | |
| 240 | + | |
| 241 | 241 | b = new YAHOO.widget.Button("i3GEOlegendabotao17", { |
| 242 | 242 | onclick : { |
| 243 | 243 | fn : i3GEOF.legenda.alteraGeometriaTema |
| ... | ... | @@ -380,6 +380,7 @@ i3GEOF.legenda = |
| 380 | 380 | }; |
| 381 | 381 | minimiza = function() { |
| 382 | 382 | var t = i3GEO.janela.minimiza("i3GEOF.legenda","100px"); |
| 383 | + i3GEOF.legenda.ativaAplicar("none"); | |
| 383 | 384 | if(t === "min"){ |
| 384 | 385 | $i("i3GEOFlegendaCabecalhoI").style.display = "none"; |
| 385 | 386 | } else { |
| ... | ... | @@ -439,6 +440,25 @@ i3GEOF.legenda = |
| 439 | 440 | i.zIndex = i3GEO.janela.ULTIMOZINDEX; |
| 440 | 441 | i3GEO.janela.ULTIMOZINDEX++; |
| 441 | 442 | }, |
| 443 | + ativaAplicar : function(tipo){ | |
| 444 | + var b = $i("i3GEOlegendabotao10"); | |
| 445 | + if(b){ | |
| 446 | + b.style.display = tipo; | |
| 447 | + } | |
| 448 | + else{ | |
| 449 | + YAHOO.i3GEO.janela.manager.find("i3GEOF.legenda").setFooter( | |
| 450 | + '<input id="i3GEOlegendabotao10" type="button" value="'+$trad('aplicaAlteracoes',i3GEOF.legenda.dicionario)+'" style="width: 450px;cursor:pointer;color:blue;display: block;"/>' | |
| 451 | + ); | |
| 452 | + b = new YAHOO.widget.Button("i3GEOlegendabotao10", { | |
| 453 | + onclick : { | |
| 454 | + fn : i3GEOF.legenda.aplicaEstilo | |
| 455 | + } | |
| 456 | + }); | |
| 457 | + b.addClass("rodar"); | |
| 458 | + $i("i3GEOlegendabotao10-button").style.width = "100%"; | |
| 459 | + $i("i3GEOlegendabotao10").style.width = "100%"; | |
| 460 | + } | |
| 461 | + }, | |
| 442 | 462 | /* |
| 443 | 463 | * Function: aposAlterarLegenda |
| 444 | 464 | * |
| ... | ... | @@ -1057,6 +1077,7 @@ i3GEOF.legenda = |
| 1057 | 1077 | try { |
| 1058 | 1078 | $i("i3GEOlegendaguia1obj").style.display = "none"; |
| 1059 | 1079 | $i("i3GEOlegendaguia3obj").style.display = "block"; |
| 1080 | + i3GEOF.legenda.ativaAplicar("block"); | |
| 1060 | 1081 | id = id.split("-"); |
| 1061 | 1082 | i3GEOF.legenda.classe = id[1]; |
| 1062 | 1083 | i3GEOF.legenda.estilo = 0; | ... | ... |
ferramentas/legenda/template_mst.html
| ... | ... | @@ -213,9 +213,11 @@ |
| 213 | 213 | <input id='i3GEOlegendabotao14' class='executar' size='8' type='button' value='{{{desce}}}' /> |
| 214 | 214 | <div id='i3GEOlegendaParametrosEstilos' style='position: relative; top: 10px; left: 0px; text-align: left'></div> |
| 215 | 215 | <br> <br> |
| 216 | + <!-- | |
| 216 | 217 | <p class='paragrafo' style='font-size: 10px'> |
| 217 | 218 | <input id='i3GEOlegendabotao10' size='35' type='button' value='{{{aplicaAlteracoes}}}' /> |
| 218 | 219 | </p> |
| 220 | + --> | |
| 219 | 221 | <div style='position: relative; top: 0px; left: 0px; text-align: left;' id='i3GEOlegendamostraEstilo'></div> |
| 220 | 222 | <div style='position: relative; top: 0px; left: 0px; text-align: left;' id='i3GEOlegendasimbolos'></div> |
| 221 | 223 | </fieldset> | ... | ... |