Commit a808f9e6e57ef9079c07b951b186a6da63bd2672
1 parent
4c4a50ba
Exists in
master
and in
7 other branches
Incluido botão para testar a barra de escalas na ferramenta de modificação dos p…
…arâmetros da escala gráfica inserida no mapa.
Showing
2 changed files
with
13 additions
and
10 deletions
Show diff stats
ferramentas/opcoes_escala/index.htm
... | ... | @@ -10,16 +10,16 @@ |
10 | 10 | <table summary="" class=lista3 width="90%"> |
11 | 11 | <tr> |
12 | 12 | <td>Largura:</td> |
13 | - <td><input onchange=testaBarra() style="cursor:text" size=4 class=digitar type='text' id=w value='' /></td> | |
13 | + <td><input style="cursor:text" size=4 class=digitar type='text' id=w value='' /></td> | |
14 | 14 | </tr> |
15 | 15 | <tr> |
16 | 16 | <td>Altura:</td> |
17 | - <td><input onchange=testaBarra() style="cursor:text" size=4 class=digitar type='text' id=h value='' /></td> | |
17 | + <td><input style="cursor:text" size=4 class=digitar type='text' id=h value='' /></td> | |
18 | 18 | </tr> |
19 | 19 | <tr> |
20 | 20 | <td>Unidade:</td> |
21 | 21 | <td> |
22 | - <select onchange=testaBarra() id=unidade > | |
22 | + <select id=unidade > | |
23 | 23 | <option value=3 selected >Metros</option> |
24 | 24 | <option value=4 >Km</option> |
25 | 25 | </select> |
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 | <tr> |
29 | 29 | <td>Estilo:</td> |
30 | 30 | <td> |
31 | - <select onchange=testaBarra() id=estilo > | |
31 | + <select id=estilo > | |
32 | 32 | <option value=0 selected >Bloco</option> |
33 | 33 | <option value=1 >Linear</option> |
34 | 34 | <option value=2 >Sem barra</option> |
... | ... | @@ -37,25 +37,27 @@ |
37 | 37 | </tr> |
38 | 38 | <tr> |
39 | 39 | <td>Intervalos:</td> |
40 | - <td><input onchange=testaBarra() style="cursor:text" size=4 class=digitar type='text' id=intervalos value='' /></td> | |
40 | + <td><input style="cursor:text" size=4 class=digitar type='text' id=intervalos value='' /></td> | |
41 | 41 | </tr> |
42 | 42 | <tr> |
43 | 43 | <td>Cor:</td> |
44 | - <td><input onchange=testaBarra() style="cursor:text" size=12 class=digitar type='text' id=cor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('cor')" /></td> | |
44 | + <td><input style="cursor:text" size=12 class=digitar type='text' id=cor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('cor')" /></td> | |
45 | 45 | </tr> |
46 | 46 | <tr> |
47 | 47 | <td>Fundo:</td> |
48 | - <td><input onchange=testaBarra() style="cursor:text" size=12 class=digitar type='text' id=bcor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('bcor')" /></td> | |
48 | + <td><input style="cursor:text" size=12 class=digitar type='text' id=bcor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('bcor')" /></td> | |
49 | 49 | </tr> |
50 | 50 | <tr> |
51 | 51 | <td>Contorno:</td> |
52 | - <td><input onchange=testaBarra() style="cursor:text" size=10 class=digitar type='text' id=ocor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('ocor')" /></td> | |
52 | + <td><input style="cursor:text" size=10 class=digitar type='text' id=ocor value='' /><img alt="aquarela.gif" style=cursor:pointer src='../../imagens/aquarela.gif' onclick="corj('ocor')" /></td> | |
53 | 53 | </tr> |
54 | 54 | </table> |
55 | 55 | <div style=top:10px;left:0px;text-align:left; onclick="executa()"> |
56 | 56 | <input id=botao1 size=20 type=button value="Aplicar" /> |
57 | 57 | </div> |
58 | - | |
58 | + <div style="width:100px;left:100px;position:relative;text-align:left;top:-17px;" onclick="testaBarra()"> | |
59 | + <input id=botao2 size=20 type=button value="Testar" /> | |
60 | + </div> | |
59 | 61 | <div id=teste style=left:0px;top:10px; > |
60 | 62 | </div> |
61 | 63 | </div> | ... | ... |
ferramentas/opcoes_escala/index.js
... | ... | @@ -32,10 +32,10 @@ YAHOO.example.init = function () |
32 | 32 | function onPushButtonsMarkupReady() |
33 | 33 | { |
34 | 34 | new YAHOO.widget.Button("botao1"); |
35 | + new YAHOO.widget.Button("botao2"); | |
35 | 36 | } |
36 | 37 | YAHOO.util.Event.onContentReady("botao1", onPushButtonsMarkupReady); |
37 | 38 | }() |
38 | - | |
39 | 39 | function inicia(retorno) |
40 | 40 | { |
41 | 41 | if (retorno.data != undefined) |
... | ... | @@ -50,6 +50,7 @@ function inicia(retorno) |
50 | 50 | $i("cor").value = cor |
51 | 51 | $i("bcor").value = bcor |
52 | 52 | $i("ocor").value = ocor |
53 | + testaBarra() | |
53 | 54 | } |
54 | 55 | aguarde("none") |
55 | 56 | } | ... | ... |