From 447e7e05f89ba1f5578f258624278c3827cea078 Mon Sep 17 00:00:00 2001 From: edmarmoretti Date: Wed, 16 Aug 2017 14:36:30 -0300 Subject: [PATCH] Correção na abertura da ferramenta legenda nos casos em que não existem camadas visíveis no mapa --- ferramentas/legenda/index.js | 8 +------- ferramentas/tipoimagem/index.js | 24 ++++-------------------- ferramentas/tipoimagem/template_mst.html | 21 +++++++++++---------- 3 files changed, 16 insertions(+), 37 deletions(-) diff --git a/ferramentas/legenda/index.js b/ferramentas/legenda/index.js index 814b4e7..d315f46 100755 --- a/ferramentas/legenda/index.js +++ b/ferramentas/legenda/index.js @@ -146,10 +146,7 @@ i3GEOF.legenda = }); return; } - if (i3GEO.temaAtivo === "") { - $i(iddiv).innerHTML = ""; - return; - } + try { $i(iddiv).innerHTML += i3GEOF.legenda.html(); if (!$i("i3GEOFlegendaComboCabecaSel")) { @@ -196,7 +193,6 @@ i3GEOF.legenda = i3GEO.guias.mostraGuiaFerramenta("i3GEOlegendaguia5", "i3GEOlegendaguia"); }; - i3GEOF.legenda.ativaFoco(); i3GEOF.legenda.mostralegenda(); i3GEOF.legenda.montaCombosItens(); @@ -214,7 +210,6 @@ i3GEOF.legenda = i3GEO.util.aplicaAquarela("i3GEOF.legenda_corpo"); i3GEOF.legenda.aposIniciar.call(); } catch (erro) { - i3GEO.janela.tempoMsg(erro); i3GEOF.legenda.aposIniciar = function(){}; } i3GEO.guias.ajustaGuiaFerramenta("i3GEOF.legenda", "i3GEOlegenda"); @@ -479,7 +474,6 @@ i3GEOF.legenda = } i3GEOF.legenda.aguarde.visibility = "hidden"; } catch (e) { - i3GEO.janela.tempoMsg($trad('msgNaoEditaLegenda', i3GEOF.legenda.dicionario)); i3GEOF.legenda.aguarde.visibility = "hidden"; } }, diff --git a/ferramentas/tipoimagem/index.js b/ferramentas/tipoimagem/index.js index dc932e9..5a93b63 100755 --- a/ferramentas/tipoimagem/index.js +++ b/ferramentas/tipoimagem/index.js @@ -76,31 +76,15 @@ i3GEOF.tipoimagem = { }); return; } - try{ - var temp,f,b; + var f; $i(iddiv).innerHTML += i3GEOF.tipoimagem.html(); - b = new YAHOO.widget.Button( - "i3GEOFtipoImagemListaDeFiltrosOk", - {onclick:{fn: i3GEOF.tipoimagem.aplicar}} - ); - b.addClass("rodar"); - temp = $i("i3GEOFtipoImagemListaDeFiltrosOk-button").style; - temp.minHeight = "1.5em"; - temp.padding = "0px 5px"; f = i3GEO.configura.tipoimagem; - if(f == 'nenhum') - {f = "";} + if(f == 'nenhum'){ + f = ""; + } $i("i3GEOFtipoImagemListaDeFiltros").value = f; - - var temp = function(retorno){ - g_legendaHTML = retorno.data.legenda; - }; - i3GEO.php.criaLegendaHTML(temp,"","legendaseminput.htm"); - } - catch(erro){i3GEO.janela.tempoMsg(erro);} - }, /* Function: html diff --git a/ferramentas/tipoimagem/template_mst.html b/ferramentas/tipoimagem/template_mst.html index 79c1943..9218739 100755 --- a/ferramentas/tipoimagem/template_mst.html +++ b/ferramentas/tipoimagem/template_mst.html @@ -1,17 +1,18 @@ -
-

{{{selecionaFiltro}}}

-
- +
+
{{{selecionaFiltro}}}
+
+ +
-
-

- -

-

+ + + +
- + {{{nenhum}}} -- libgit2 0.21.2