Commit 9ad5c2db555871bea2af6fd04508e92cfcc1884d
1 parent
c06f6b6d
Exists in
master
and in
6 other branches
Correção no editor de etiquetas
Showing
3 changed files
with
17 additions
and
23 deletions
Show diff stats
ferramentas/etiqueta/exec.php
... | ... | @@ -21,8 +21,6 @@ Ativa as etiquetas de um tema. |
21 | 21 | $m->layer->setmetadata("IDENTIFICA",""); |
22 | 22 | $m->layer->setmetadata("TIP",$_GET["tips"]); |
23 | 23 | $m->layer->setmetadata("ITENS",$_GET["itens"]); |
24 | - //$m->layer->setmetadata("ITENSDESC",base64_decode($itensdesc)); | |
25 | - //$m->layer->setmetadata("ITENSLINK",base64_decode($itenslink)); | |
26 | 24 | $m->layer->setmetadata("ITENSDESC",$_GET["itensdesc"]); |
27 | 25 | $m->layer->setmetadata("ITENSLINK",$_GET["itenslink"]); |
28 | 26 | $m->layer->setmetadata("itembuscarapida",$_GET["itembuscarapida"]); | ... | ... |
ferramentas/etiqueta/index.js
... | ... | @@ -291,23 +291,19 @@ i3GEOF.etiqueta = { |
291 | 291 | i, |
292 | 292 | it, |
293 | 293 | n = inputs.length; |
294 | - for (i=0;i<n; i++){ | |
295 | - it = inputs[i]; | |
296 | - if (it.checked === true && it.name === "etiquetaTip"){ | |
297 | - tips.push(it.value); | |
298 | - } | |
299 | - if (it.checked === true && it.name === "identifica"){ | |
300 | - itens.push(it.value); | |
301 | - } | |
302 | - if (it.name === "itensdesc"){ | |
303 | - itensdesc.push(it.value); | |
304 | - } | |
305 | - if (it.name === "itenslink"){ | |
306 | - itenslink.push(it.value); | |
307 | - } | |
308 | - if (it.name === "itembuscarapida" && it.checked === true){ | |
309 | - itembuscarapida = it.value; | |
294 | + for (i=0;i<n; i=i+5){ | |
295 | + if (inputs[i].checked === true){ | |
296 | + itens.push(inputs[i].value); | |
297 | + if (inputs[i+1].checked === true){ | |
298 | + tips.push(inputs[i+1].value); | |
299 | + } | |
300 | + if (inputs[i+2].checked){ | |
301 | + itembuscarapida = inputs[i+2].value; | |
302 | + } | |
303 | + itensdesc.push(inputs[i+3].value); | |
304 | + itenslink.push(inputs[i+4].value); | |
310 | 305 | } |
306 | + | |
311 | 307 | } |
312 | 308 | return([tips,itens,itensdesc,itenslink,itembuscarapida]); |
313 | 309 | }, | ... | ... |
ferramentas/etiqueta/templateLista_mst.html
... | ... | @@ -2,11 +2,11 @@ |
2 | 2 | <table> |
3 | 3 | <tr> |
4 | 4 | <td>Coluna</td> |
5 | - <td>Identifica</td> | |
6 | - <td>Tip</td> | |
7 | - <td>Busca</td> | |
8 | - <td>Alias</td> | |
9 | - <td style="margin-left:10px;">Link</td> | |
5 | + <td style="text-align:center">Identifica</td> | |
6 | + <td style="text-align:center">Tip</td> | |
7 | + <td style="text-align:center">Busca</td> | |
8 | + <td style="text-align:center">Alias</td> | |
9 | + <td style="text-align:center;">Link</td> | |
10 | 10 | <tr>{{#linhas}} |
11 | 11 | <tr> |
12 | 12 | <td>{{{item}}}</td> | ... | ... |