Commit 447e7e05f89ba1f5578f258624278c3827cea078

Authored by Edmar Moretti
1 parent e5c84981

Correção na abertura da ferramenta legenda nos casos em que não existem camadas visíveis no mapa

ferramentas/legenda/index.js
... ... @@ -146,10 +146,7 @@ i3GEOF.legenda =
146 146 });
147 147 return;
148 148 }
149   - if (i3GEO.temaAtivo === "") {
150   - $i(iddiv).innerHTML = "";
151   - return;
152   - }
  149 +
153 150 try {
154 151 $i(iddiv).innerHTML += i3GEOF.legenda.html();
155 152 if (!$i("i3GEOFlegendaComboCabecaSel")) {
... ... @@ -196,7 +193,6 @@ i3GEOF.legenda =
196 193 i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia5", "i3GEOlegendaguia");
197 194 };
198 195  
199   -
200 196 i3GEOF.legenda.ativaFoco();
201 197 i3GEOF.legenda.mostralegenda();
202 198 i3GEOF.legenda.montaCombosItens();
... ... @@ -214,7 +210,6 @@ i3GEOF.legenda =
214 210 i3GEO.util.aplicaAquarela("i3GEOF.legenda_corpo");
215 211 i3GEOF.legenda.aposIniciar.call();
216 212 } catch (erro) {
217   - i3GEO.janela.tempoMsg(erro);
218 213 i3GEOF.legenda.aposIniciar = function(){};
219 214 }
220 215 i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda", "i3GEOlegenda");
... ... @@ -479,7 +474,6 @@ i3GEOF.legenda =
479 474 }
480 475 i3GEOF.legenda.aguarde.visibility = "hidden";
481 476 } catch (e) {
482   - i3GEO.janela.tempoMsg($trad('msgNaoEditaLegenda', i3GEOF.legenda.dicionario));
483 477 i3GEOF.legenda.aguarde.visibility = "hidden";
484 478 }
485 479 },
... ...
ferramentas/tipoimagem/index.js
... ... @@ -76,31 +76,15 @@ i3GEOF.tipoimagem = {
76 76 });
77 77 return;
78 78 }
79   - try{
80   - var temp,f,b;
  79 + var f;
81 80  
82 81 $i(iddiv).innerHTML += i3GEOF.tipoimagem.html();
83   - b = new YAHOO.widget.Button(
84   - "i3GEOFtipoImagemListaDeFiltrosOk",
85   - {onclick:{fn: i3GEOF.tipoimagem.aplicar}}
86   - );
87   - b.addClass("rodar");
88   - temp = $i("i3GEOFtipoImagemListaDeFiltrosOk-button").style;
89   - temp.minHeight = "1.5em";
90   - temp.padding = "0px 5px";
91 82  
92 83 f = i3GEO.configura.tipoimagem;
93   - if(f == 'nenhum')
94   - {f = "";}
  84 + if(f == 'nenhum'){
  85 + f = "";
  86 + }
95 87 $i("i3GEOFtipoImagemListaDeFiltros").value = f;
96   -
97   - var temp = function(retorno){
98   - g_legendaHTML = retorno.data.legenda;
99   - };
100   - i3GEO.php.criaLegendaHTML(temp,"","legendaseminput.htm");
101   - }
102   - catch(erro){i3GEO.janela.tempoMsg(erro);}
103   -
104 88 },
105 89 /*
106 90 Function: html
... ...
ferramentas/tipoimagem/template_mst.html
1   -<div style='margin-left: 5px'>
2   - <p class='paragrafo'>{{{selecionaFiltro}}}</p>
3   - <div class='i3geoForm i3geoFormIconeEdita'>
4   - <input type='text' size='29' value='' id='i3GEOFtipoImagemListaDeFiltros' style='position: relative; top: -2px' />
  1 +<div class="container-fluid">
  2 + <h5>{{{selecionaFiltro}}}</h5>
  3 + <div class='form-group label-fixed condensed'>
  4 + <label class="control-label" for="i3GEOFtipoImagemListaDeFiltros">{{{selecionaFiltro}}}</label>
  5 + <input class="form-control input-lg" type='text' id='i3GEOFtipoImagemListaDeFiltros' value='' />
5 6 </div>
6   - <br>
7   - <p class='paragrafo'>
8   - <input id='i3GEOFtipoImagemListaDeFiltrosOk' type='button' value='{{{aplica}}}' size='20' />
9   - </p>
10   - <br> <br>
  7 + <button onclick="i3GEOF.tipoimagem.aplicar()" class='btn btn-primary btn-sm btn-raised'>{{{aplica}}}</button>
  8 +
  9 +
  10 +
11 11 <table class='lista6' style='width: 200px'>
12 12 <tr>
13 13 <td>
14   - <input onclick='javascript:$i({{{asp}}}i3GEOFtipoImagemListaDeFiltros{{{asp}}}).value = {{{asp}}}{{{asp}}}' style='cursor: pointer; border: 0px solid white;' type='radio' name='i3GEOtipoimagemtipo' value='nenhum'>
  14 + <input onclick='javascript:$i({{{asp}}}i3GEOFtipoImagemListaDeFiltros{{{asp}}}).value = {{{asp}}}{{{asp}}}' style='cursor: pointer; border: 0px solid white;' type='radio'
  15 + name='i3GEOtipoimagemtipo' value='nenhum'>
15 16 </td>
16 17 <td>{{{nenhum}}}</td>
17 18 <td>
... ...