From 225db094dbf1518c3b4ff36693203fb81e434437 Mon Sep 17 00:00:00 2001 From: edmarmoretti Date: Thu, 17 Aug 2017 09:11:25 -0300 Subject: [PATCH] Adaptação da ferramenta de definição da cor do fundo do mapa para Bootstrap --- ferramentas/opcoes_fundo/dicionario.js | 7 ++++++- ferramentas/opcoes_fundo/index.js | 22 +++------------------- ferramentas/opcoes_fundo/template_mst.html | 12 +++++------- 3 files changed, 14 insertions(+), 27 deletions(-) diff --git a/ferramentas/opcoes_fundo/dicionario.js b/ferramentas/opcoes_fundo/dicionario.js index 8bf73fc..3f79439 100755 --- a/ferramentas/opcoes_fundo/dicionario.js +++ b/ferramentas/opcoes_fundo/dicionario.js @@ -1,7 +1,7 @@ //+$trad(1,i3GEOF.opcoesFundo.dicionario)+ i3GEOF.opcoesFundo.dicionario = { 'ajuda' : [ { - pt : "Essa operacao afeta apenas a ferramenta de impressao do mapa", + pt : "Essa operacao afeta apenas algumas funcionalidades, como a ferramenta de impressao do mapa", en : "", es : "" } ], @@ -9,5 +9,10 @@ i3GEOF.opcoesFundo.dicionario = { pt : "Aplica", en : "", es : "" + } ], + 'cor' : [ { + pt : "Escolha a cor desejada", + en : "", + es : "" } ] }; \ No newline at end of file diff --git a/ferramentas/opcoes_fundo/index.js b/ferramentas/opcoes_fundo/index.js index f543e11..2c53728 100755 --- a/ferramentas/opcoes_fundo/index.js +++ b/ferramentas/opcoes_fundo/index.js @@ -45,12 +45,6 @@ i3GEOF.opcoesFundo = try { i3GEOF.opcoesFundo.aguarde.visibility = "visible"; $i(iddiv).innerHTML += i3GEOF.opcoesFundo.html(); - var b = new YAHOO.widget.Button("i3GEOopcoesFundobotao1", { - onclick : { - fn : i3GEOF.opcoesFundo.executa - } - }); - b.addClass("rodar150"); i3GEO.util.aplicaAquarela("i3GEOF.opcoesFundo_corpo"); var p = i3GEO.configura.locaplic + "/ferramentas/opcoes_fundo/exec.php?g_sid=" + i3GEO.configura.sid + "&funcao=pegacorfundo", cp = @@ -67,7 +61,7 @@ i3GEOF.opcoesFundo = } catch (erro) { i3GEO.janela.tempoMsg(erro); } - if (i3GEO.Interface.ATUAL === "googlemaps" || i3GEO.Interface.ATUAL === "googleearth") { + if (i3GEO.Interface.ATUAL === "googlemaps") { i3GEO.janela.tempoMsg($trad('ajuda', i3GEOF.opcoesFundo.dicionario)); } }, @@ -102,8 +96,8 @@ i3GEOF.opcoesFundo = // cria a janela flutuante titulo = "" + $trad("p9") + ""; janela = i3GEO.janela.cria( - "210px", - "80px", + "300px", + "150px", "", "", "", @@ -122,20 +116,10 @@ i3GEOF.opcoesFundo = "6" ); divid = janela[2].id; - $i("i3GEOF.opcoesFundo_corpo").style.backgroundColor = "white"; - $i("i3GEOF.opcoesFundo_corpo").style.textAlign = "left"; i3GEOF.opcoesFundo.aguarde = $i("i3GEOF.opcoesFundo_imagemCabecalho").style; i3GEOF.opcoesFundo.inicia(divid); }, /* - * Function: corj - * - * Abre a janela para o usuário selecionar uma cor interativamente - */ - corj : function(obj) { - i3GEO.util.abreCor("", obj); - }, - /* * Function: executa * * Aplica a nova cor diff --git a/ferramentas/opcoes_fundo/template_mst.html b/ferramentas/opcoes_fundo/template_mst.html index 81a05d3..fb9e6a8 100755 --- a/ferramentas/opcoes_fundo/template_mst.html +++ b/ferramentas/opcoes_fundo/template_mst.html @@ -1,9 +1,7 @@ -
-
- +
+
+ +
-
-

- -

+
\ No newline at end of file -- libgit2 0.21.2