Commit 225db094dbf1518c3b4ff36693203fb81e434437
1 parent
f4beda7b
Exists in
master
and in
7 other branches
Adaptação da ferramenta de definição da cor do fundo do mapa para Bootstrap
Showing
3 changed files
with
14 additions
and
27 deletions
Show diff stats
ferramentas/opcoes_fundo/dicionario.js
1 | 1 | //+$trad(1,i3GEOF.opcoesFundo.dicionario)+ |
2 | 2 | i3GEOF.opcoesFundo.dicionario = { |
3 | 3 | 'ajuda' : [ { |
4 | - pt : "Essa operacao afeta apenas a ferramenta de impressao do mapa", | |
4 | + pt : "Essa operacao afeta apenas algumas funcionalidades, como a ferramenta de impressao do mapa", | |
5 | 5 | en : "", |
6 | 6 | es : "" |
7 | 7 | } ], |
... | ... | @@ -9,5 +9,10 @@ i3GEOF.opcoesFundo.dicionario = { |
9 | 9 | pt : "Aplica", |
10 | 10 | en : "", |
11 | 11 | es : "" |
12 | + } ], | |
13 | + 'cor' : [ { | |
14 | + pt : "Escolha a cor desejada", | |
15 | + en : "", | |
16 | + es : "" | |
12 | 17 | } ] |
13 | 18 | }; |
14 | 19 | \ No newline at end of file | ... | ... |
ferramentas/opcoes_fundo/index.js
... | ... | @@ -45,12 +45,6 @@ i3GEOF.opcoesFundo = |
45 | 45 | try { |
46 | 46 | i3GEOF.opcoesFundo.aguarde.visibility = "visible"; |
47 | 47 | $i(iddiv).innerHTML += i3GEOF.opcoesFundo.html(); |
48 | - var b = new YAHOO.widget.Button("i3GEOopcoesFundobotao1", { | |
49 | - onclick : { | |
50 | - fn : i3GEOF.opcoesFundo.executa | |
51 | - } | |
52 | - }); | |
53 | - b.addClass("rodar150"); | |
54 | 48 | i3GEO.util.aplicaAquarela("i3GEOF.opcoesFundo_corpo"); |
55 | 49 | var p = |
56 | 50 | i3GEO.configura.locaplic + "/ferramentas/opcoes_fundo/exec.php?g_sid=" + i3GEO.configura.sid + "&funcao=pegacorfundo", cp = |
... | ... | @@ -67,7 +61,7 @@ i3GEOF.opcoesFundo = |
67 | 61 | } catch (erro) { |
68 | 62 | i3GEO.janela.tempoMsg(erro); |
69 | 63 | } |
70 | - if (i3GEO.Interface.ATUAL === "googlemaps" || i3GEO.Interface.ATUAL === "googleearth") { | |
64 | + if (i3GEO.Interface.ATUAL === "googlemaps") { | |
71 | 65 | i3GEO.janela.tempoMsg($trad('ajuda', i3GEOF.opcoesFundo.dicionario)); |
72 | 66 | } |
73 | 67 | }, |
... | ... | @@ -102,8 +96,8 @@ i3GEOF.opcoesFundo = |
102 | 96 | // cria a janela flutuante |
103 | 97 | titulo = "<span class='i3GeoTituloJanelaBsNolink' >" + $trad("p9") + "</span></div>"; |
104 | 98 | janela = i3GEO.janela.cria( |
105 | - "210px", | |
106 | - "80px", | |
99 | + "300px", | |
100 | + "150px", | |
107 | 101 | "", |
108 | 102 | "", |
109 | 103 | "", |
... | ... | @@ -122,20 +116,10 @@ i3GEOF.opcoesFundo = |
122 | 116 | "6" |
123 | 117 | ); |
124 | 118 | divid = janela[2].id; |
125 | - $i("i3GEOF.opcoesFundo_corpo").style.backgroundColor = "white"; | |
126 | - $i("i3GEOF.opcoesFundo_corpo").style.textAlign = "left"; | |
127 | 119 | i3GEOF.opcoesFundo.aguarde = $i("i3GEOF.opcoesFundo_imagemCabecalho").style; |
128 | 120 | i3GEOF.opcoesFundo.inicia(divid); |
129 | 121 | }, |
130 | 122 | /* |
131 | - * Function: corj | |
132 | - * | |
133 | - * Abre a janela para o usuário selecionar uma cor interativamente | |
134 | - */ | |
135 | - corj : function(obj) { | |
136 | - i3GEO.util.abreCor("", obj); | |
137 | - }, | |
138 | - /* | |
139 | 123 | * Function: executa |
140 | 124 | * |
141 | 125 | * Aplica a nova cor | ... | ... |
ferramentas/opcoes_fundo/template_mst.html
1 | -<div style='margin-left: 5px'> | |
2 | - <div class='i3geoForm100 i3geoFormIconeAquarela'> | |
3 | - <input type='text' id='i3GEOopcoesFundocor' value='2' /> | |
1 | +<div class='container-fluid'> | |
2 | + <div class='form-group label-fixed condensed'> | |
3 | + <label class="control-label" for="">{{{cor}}}</label> | |
4 | + <input class="form-control input-lg i3geoFormIconeAquarela" type='text' id='i3GEOopcoesFundocor' value='' /> | |
4 | 5 | </div> |
5 | - <br> | |
6 | - <p class='paragrafo'> | |
7 | - <input size='20' id='i3GEOopcoesFundobotao1' type='button' value='{{{aplica}}}' /> | |
8 | - </p> | |
6 | + <button onclick="i3GEOF.opcoesFundo.executa()" class='btn btn-primary btn-sm btn-raised'>{{{aplica}}}</button> | |
9 | 7 | </div> |
10 | 8 | \ No newline at end of file | ... | ... |