Commit 97055275af541168608de44d6573b830fb71ab44
1 parent
c24d4be6
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
48 additions
and
49 deletions
Show diff stats
ferramentas/buffer/index.js
| ... | ... | @@ -51,12 +51,6 @@ i3GEOF.buffer = { |
| 51 | 51 | Objeto DOM com a imagem de aguarde existente no cabeçalho da janela. |
| 52 | 52 | */ |
| 53 | 53 | aguarde: "", |
| 54 | - /* | |
| 55 | - Para efeitos de compatibilidade antes da versão 4.7 que não tinha dicionário | |
| 56 | - */ | |
| 57 | - criaJanelaFlutuante: function(){ | |
| 58 | - i3GEOF.buffer.iniciaDicionario(); | |
| 59 | - }, | |
| 60 | 54 | /** |
| 61 | 55 | * Template no formato mustache. E preenchido na carga do javascript com o programa dependencias.php |
| 62 | 56 | */ |
| ... | ... | @@ -66,28 +60,12 @@ i3GEOF.buffer = { |
| 66 | 60 | */ |
| 67 | 61 | mustacheHash : function() { |
| 68 | 62 | var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.buffer.dicionario); |
| 63 | + dicionario["locaplic"] = i3GEO.configura.locaplic; | |
| 64 | + dicionario["sim"] = $trad("x14"); | |
| 65 | + dicionario["nao"] = $trad("x15"); | |
| 69 | 66 | return dicionario; |
| 70 | 67 | }, |
| 71 | 68 | /* |
| 72 | - Function: iniciaDicionario | |
| 73 | - | |
| 74 | - Carrega o dicionário e chama a função que inicia a ferramenta | |
| 75 | - | |
| 76 | - O Javascript é carregado com o id i3GEOF.nomedaferramenta.dicionario_script | |
| 77 | - */ | |
| 78 | - iniciaDicionario: function(){ | |
| 79 | - if(typeof(i3GEOF.buffer.dicionario) === 'undefined'){ | |
| 80 | - i3GEO.util.scriptTag( | |
| 81 | - i3GEO.configura.locaplic+"/ferramentas/buffer/dicionario.js", | |
| 82 | - "i3GEOF.buffer.iniciaJanelaFlutuante()", | |
| 83 | - "i3GEOF.buffer.dicionario_script" | |
| 84 | - ); | |
| 85 | - } | |
| 86 | - else{ | |
| 87 | - i3GEOF.buffer.iniciaJanelaFlutuante(); | |
| 88 | - } | |
| 89 | - }, | |
| 90 | - /* | |
| 91 | 69 | Function: inicia |
| 92 | 70 | |
| 93 | 71 | Inicia a ferramenta. É chamado por criaJanelaFlutuante |
| ... | ... | @@ -157,37 +135,20 @@ i3GEOF.buffer = { |
| 157 | 135 | if(i3GEO.eventos.ATUALIZAARVORECAMADAS.toString().search("i3GEOF.buffer.t0()") < 0) |
| 158 | 136 | {i3GEO.eventos.ATUALIZAARVORECAMADAS.push("i3GEOF.buffer.t0()");} |
| 159 | 137 | }, |
| 160 | - t0: function() | |
| 161 | - { | |
| 162 | - var ins = "<img class=i3GeoExemploImg src='"+i3GEO.configura.locaplic+"/ferramentas/buffer/exemplo.png' />" + | |
| 163 | - "<p class='paragrafo' >"+$trad('descricao',i3GEOF.buffer.dicionario) + | |
| 164 | - "<p class='paragrafo' >"+$trad('descricao2',i3GEOF.buffer.dicionario); | |
| 165 | - i3GEO.util.proximoAnterior("","i3GEOF.buffer.t1()",ins,"i3GEOFgradeDePontost0","i3GEObufferresultado",true,"i3GEOF.buffer_rodape"); | |
| 138 | + t0: function(){ | |
| 139 | + i3GEO.util.proximoAnterior("","i3GEOF.buffer.t1()","","i3GEOFgradeDePontost0","i3GEObufferresultado",true,"i3GEOF.buffer_rodape"); | |
| 166 | 140 | }, |
| 167 | 141 | t1: function(){ |
| 168 | - var ins = "<p class='paragrafo'>"+$trad('selecionaTema',i3GEOF.buffer.dicionario)+":"; | |
| 169 | - ins += "<div id='i3GEObufferSelTemas' style='text-align:left;font-size:11px'></div>"; | |
| 170 | - i3GEO.util.proximoAnterior("i3GEOF.buffer.t0()","i3GEOF.buffer.t2()",ins,"i3GEOF.buffer.t1","i3GEObufferresultado",true,"i3GEOF.buffer_rodape"); | |
| 142 | + i3GEO.util.proximoAnterior("i3GEOF.buffer.t0()","i3GEOF.buffer.t2()","","i3GEOF.buffer.t1","i3GEObufferresultado",true,"i3GEOF.buffer_rodape"); | |
| 171 | 143 | i3GEOF.buffer.comboTemasSel(); |
| 172 | 144 | }, |
| 173 | 145 | t2: function(){ |
| 174 | - var ins = "<p class='paragrafo'>"+$trad('entorno',i3GEOF.buffer.dicionario); | |
| 175 | - ins += "<br><div class='i3geoForm i3geoFormIconeEdita' style='display:block' ><input id='i3GEObufferd' type=text value='0'/></div>"; | |
| 176 | - | |
| 177 | - ins += "<br><p class='paragrafo' >"+$trad('entornoAtributo',i3GEOF.buffer.dicionario); | |
| 178 | - ins += "<br><div id=i3GEObufferondeItens style='text-align:left;display:block' ></div> "; | |
| 179 | - | |
| 180 | - ins += "<br><p class='paragrafo'>"+$trad('agregaElementos',i3GEOF.buffer.dicionario); | |
| 181 | - ins += "<br></p><div class=styled-select ><select id=i3GEObufferunir ><option value=nao selected >"+$trad("x15")+"</option><option value=sim >"+$trad("x14")+"</option></select></div>"; | |
| 182 | - ins += "<br><br>"; | |
| 183 | - i3GEO.util.proximoAnterior("i3GEOF.buffer.t1()","i3GEOF.buffer.t3()",ins,"i3GEOF.buffer.t2","i3GEObufferresultado",true,"i3GEOF.buffer_rodape"); | |
| 146 | + i3GEO.util.proximoAnterior("i3GEOF.buffer.t1()","i3GEOF.buffer.t3()","","i3GEOF.buffer.t2","i3GEObufferresultado",true,"i3GEOF.buffer_rodape"); | |
| 184 | 147 | i3GEOF.buffer.comboItens(); |
| 185 | 148 | }, |
| 186 | 149 | t3: function(){ |
| 187 | - var b,ins = "<p class='paragrafo'>"+$trad('adicionaTemaEntorno',i3GEOF.buffer.dicionario); | |
| 188 | - ins += "<br><br><input id=i3GEObufferbotao1 type='button' value='"+$trad('criaEntorno',i3GEOF.buffer.dicionario)+"' />"; | |
| 189 | - i3GEO.util.proximoAnterior("i3GEOF.buffer.t2()","",ins,"i3GEOF.buffer.t3","i3GEObufferresultado",true,"i3GEOF.buffer_rodape"); | |
| 190 | - b = new YAHOO.widget.Button( | |
| 150 | + i3GEO.util.proximoAnterior("i3GEOF.buffer.t2()","","","i3GEOF.buffer.t3","i3GEObufferresultado",true,"i3GEOF.buffer_rodape"); | |
| 151 | + var b = new YAHOO.widget.Button( | |
| 191 | 152 | "i3GEObufferbotao1", |
| 192 | 153 | {onclick:{fn: i3GEOF.buffer.criaBuffer}} |
| 193 | 154 | ); | ... | ... |
ferramentas/buffer/template_mst.html
| 1 | -<div style='padding: 5px; background-color: #F2F2F2; top: 0px; left: 0px; display: block; width: 98%;' id='i3GEObufferresultado'></div> | |
| 1 | +<div style='padding: 5px; background-color: #F2F2F2; top: 0px; left: 0px; display: block; width: 98%;' id='i3GEObufferresultado'> | |
| 2 | + <div id='i3GEOFgradeDePontost0'> | |
| 3 | + <img class='i3GeoExemploImg' src='{{{locaplic}}}/ferramentas/buffer/exemplo.png' /> | |
| 4 | + <p class='paragrafo'>{{{descricao}}} | |
| 5 | + <p class='paragrafo'>{{{descricao2}}} | |
| 6 | + </div> | |
| 7 | + <div id='i3GEOF.buffer.t1'> | |
| 8 | + <p class='paragrafo'>{{{selecionaTema}}}: | |
| 9 | + <div id='i3GEObufferSelTemas' style='text-align: left; font-size: 11px'></div> | |
| 10 | + </div> | |
| 11 | + <div id='i3GEOF.buffer.t2'> | |
| 12 | + <p class='paragrafo'> | |
| 13 | + {{{entorno}}} <br> | |
| 14 | + <div class='i3geoForm i3geoFormIconeEdita' style='display: block'> | |
| 15 | + <input id='i3GEObufferd' type=text value='0' /> | |
| 16 | + </div> | |
| 17 | + <br> | |
| 18 | + <p class='paragrafo'> | |
| 19 | + {{{entornoAtributo}}} <br> | |
| 20 | + <div id=i3GEObufferondeItens style='text-align: left; display: block'></div> | |
| 21 | + <br> | |
| 22 | + <p class='paragrafo'> | |
| 23 | + {{{agregaElementos}}} <br> | |
| 24 | + </p> | |
| 25 | + <div class=styled-select> | |
| 26 | + <select id=i3GEObufferunir> | |
| 27 | + <option value=nao selected>{{{nao}}}</option> | |
| 28 | + <option value=sim>{{{sim}}}</option> | |
| 29 | + </select> | |
| 30 | + </div> | |
| 31 | + <br> | |
| 32 | + <br> | |
| 33 | + </div> | |
| 34 | + <div id='i3GEOF.buffer.t3'> | |
| 35 | + <p class='paragrafo'>{{{adicionaTemaEntorno}}} | |
| 36 | + <br><br> | |
| 37 | + <input id='i3GEObufferbotao1' type='button' value='{{{criaEntorno}}}' /> | |
| 38 | + </div> | |
| 39 | +</div> | |
| 2 | 40 | <div style='top: 10px; left: 0px; display: block; width: 98%; color: red' id='i3GEObufferfim'></div> |
| 3 | 41 | \ No newline at end of file | ... | ... |