Commit f90aadc0d3e75e0feddff1e101e6d7958a7dbc49
1 parent
a26f7c3d
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
ferramentas/opcoes_legenda/index.js.php
@@ -48,8 +48,7 @@ i3GEOF.opcoesLegenda = { | @@ -48,8 +48,7 @@ i3GEOF.opcoesLegenda = { | ||
48 | */ | 48 | */ |
49 | inicia: function(iddiv){ | 49 | inicia: function(iddiv){ |
50 | try{ | 50 | try{ |
51 | - $i(iddiv).innerHTML += i3GEOF.opcoesLegenda.html(); | ||
52 | - i3GEO.util.comboFontes("i3GEOopcoesLegendafonte","i3GEOopcoesLegendafontef"); | 51 | + $i(iddiv).innerHTML = i3GEOF.opcoesLegenda.html(); |
53 | new YAHOO.widget.Button( | 52 | new YAHOO.widget.Button( |
54 | "i3GEOopcoesLegendabotao1", | 53 | "i3GEOopcoesLegendabotao1", |
55 | {onclick:{fn: i3GEOF.opcoesLegenda.executa}} | 54 | {onclick:{fn: i3GEOF.opcoesLegenda.executa}} |
@@ -58,6 +57,7 @@ i3GEOF.opcoesLegenda = { | @@ -58,6 +57,7 @@ i3GEOF.opcoesLegenda = { | ||
58 | "i3GEOopcoesLegendabotao2", | 57 | "i3GEOopcoesLegendabotao2", |
59 | {onclick:{fn: i3GEOF.opcoesLegenda.testa}} | 58 | {onclick:{fn: i3GEOF.opcoesLegenda.testa}} |
60 | ); | 59 | ); |
60 | + i3GEO.util.comboFontes("i3GEOopcoesLegendafonte","i3GEOopcoesLegendafontef"); | ||
61 | i3GEOF.opcoesLegenda.parametrosAtuais(); | 61 | i3GEOF.opcoesLegenda.parametrosAtuais(); |
62 | } | 62 | } |
63 | catch(erro){} | 63 | catch(erro){} |
@@ -128,7 +128,7 @@ i3GEOF.opcoesLegenda = { | @@ -128,7 +128,7 @@ i3GEOF.opcoesLegenda = { | ||
128 | '<p class=paragrafo >' + | 128 | '<p class=paragrafo >' + |
129 | '<input id=i3GEOopcoesLegendabotao1 size=20 type=button value="Aplicar" />' + | 129 | '<input id=i3GEOopcoesLegendabotao1 size=20 type=button value="Aplicar" />' + |
130 | '<input id=i3GEOopcoesLegendabotao2 size=20 type=button value="Testar" />' + | 130 | '<input id=i3GEOopcoesLegendabotao2 size=20 type=button value="Testar" />' + |
131 | - '</p><br><img src="" id=i3GEOopcoesLegendatesteLegenda />'; | 131 | + '</p><br><img alt="teste" src="" id=i3GEOopcoesLegendatesteLegenda style="display:none"/>'; |
132 | return ins; | 132 | return ins; |
133 | }, | 133 | }, |
134 | /* | 134 | /* |
@@ -212,7 +212,7 @@ i3GEOF.opcoesLegenda = { | @@ -212,7 +212,7 @@ i3GEOF.opcoesLegenda = { | ||
212 | $i("i3GEOopcoesLegendalabelsize").value = retorno.data.labelsize; | 212 | $i("i3GEOopcoesLegendalabelsize").value = retorno.data.labelsize; |
213 | } | 213 | } |
214 | i3GEOF.opcoesLegenda.aguarde.visibility = "hidden"; | 214 | i3GEOF.opcoesLegenda.aguarde.visibility = "hidden"; |
215 | - i3GEOF.opcoesLegenda.testa(); | 215 | + //i3GEOF.opcoesLegenda.testa(); |
216 | }catch(e){ | 216 | }catch(e){ |
217 | alert("Erro. "+e); | 217 | alert("Erro. "+e); |
218 | i3GEOF.opcoesLegenda.aguarde.visibility = "hidden"; | 218 | i3GEOF.opcoesLegenda.aguarde.visibility = "hidden"; |
@@ -261,6 +261,7 @@ i3GEOF.opcoesLegenda = { | @@ -261,6 +261,7 @@ i3GEOF.opcoesLegenda = { | ||
261 | i3GEOF.opcoesLegenda.aguarde.visibility = "hidden"; | 261 | i3GEOF.opcoesLegenda.aguarde.visibility = "hidden"; |
262 | eval(retorno.data); | 262 | eval(retorno.data); |
263 | $i("i3GEOopcoesLegendatesteLegenda").src = legimagem; | 263 | $i("i3GEOopcoesLegendatesteLegenda").src = legimagem; |
264 | + $i("i3GEOopcoesLegendatesteLegenda").style.display = "block"; | ||
264 | }, | 265 | }, |
265 | par = i3GEOF.opcoesLegenda.parametrosFormulario(), | 266 | par = i3GEOF.opcoesLegenda.parametrosFormulario(), |
266 | p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=testaLegenda"+par, | 267 | p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=testaLegenda"+par, |