diff --git a/admin/admin.db b/admin/admin.db index 0577cf3..16e9a46 100644 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/ferramentas/graficointerativo1/index.js b/ferramentas/graficointerativo1/index.js index 070c354..ab9b7ec 100755 --- a/ferramentas/graficointerativo1/index.js +++ b/ferramentas/graficointerativo1/index.js @@ -534,7 +534,7 @@ i3GEOF.graficointerativo1 = * */ iniciaJanelaFlutuante : function(parametros) { - var minimiza, cabecalho, janela, divid, temp, titulo, idjanela; + var duplica, minimiza, cabecalho, janela, divid, temp, titulo, idjanela; // // verifica se parametros contem dados, caso contrario compatibiliza o objeto // com a versao 6.0 do i3Geo diff --git a/ferramentas/tabela/index.js b/ferramentas/tabela/index.js index 78df13d..8d65d60 100644 --- a/ferramentas/tabela/index.js +++ b/ferramentas/tabela/index.js @@ -304,7 +304,7 @@ i3GEOF.tabela = * Cria a janela flutuante para controle da ferramenta. */ iniciaJanelaFlutuante : function(parametros) { - var minimiza, cabecalho, janela, divid, temp, titulo, id; + var duplica, minimiza, cabecalho, janela, divid, temp, titulo, id; if (!parametros) { parametros = {}; } diff --git a/js/arvoredetemas.js b/js/arvoredetemas.js index 7414018..82d817e 100644 --- a/js/arvoredetemas.js +++ b/js/arvoredetemas.js @@ -537,7 +537,7 @@ i3GEO.arvoreDeTemas = { console.info("i3GEO.arvoreDeTemas.listaRegioes()"); var monta = function(retorno) { - var node, nraiz, i, html; + var node, nraiz, i, html, tema; node = i3GEO.arvoreDeTemas.ARVORE.getNodeByProperty("idregioes", "raiz"); nraiz = retorno.length; @@ -549,19 +549,20 @@ i3GEO.arvoreDeTemas = { "nameInput" : "regioesmetaestat", "tid" : "metaregiao_" + retorno[i].codigo_tipo_regiao, "nome" : retorno[i].nome_tipo_regiao - }, html = i3GEO.arvoreDeTemas.montaTextoTema("gray", tema), - new YAHOO.widget.HTMLNode({ - isleaf : true, - html : html, - expanded : false, - hasIcon : true, - className: "i3GeoFolder", - enableHighlight : false, - tipoa_tema : "METAREGIAO", - codigo_tipo_regiao : retorno[i].codigo_tipo_regiao, - idtema : "metaregiao_" - + retorno[i].codigo_tipo_regiao - }, node); + }; + html = i3GEO.arvoreDeTemas.montaTextoTema("gray", tema); + new YAHOO.widget.HTMLNode({ + isleaf : true, + html : html, + expanded : false, + hasIcon : true, + className: "i3GeoFolder", + enableHighlight : false, + tipoa_tema : "METAREGIAO", + codigo_tipo_regiao : retorno[i].codigo_tipo_regiao, + idtema : "metaregiao_" + + retorno[i].codigo_tipo_regiao + }, node); } node.loadComplete(); }; @@ -1166,7 +1167,7 @@ i3GEO.arvoreDeTemas = { if (typeof (console) !== 'undefined') console.info("i3GEO.arvoreDeTemas.montaArvore()"); - var mais = "", tempNode, tempNode1, retorno, root, insp, outrasOpcoes, dados, c, i, j, conteudo, editor; + var ig, mais = "", tempNode, tempNode1, retorno, root, insp, outrasOpcoes, dados, c, i, j, conteudo, editor; (function() { function changeIconMode() { buildTree(); @@ -1595,7 +1596,7 @@ i3GEO.arvoreDeTemas = { console.info("i3GEO.arvoreDeTemas.montaGrupos()"); var temp = function() { - var grupos, c, raiz, nraiz, mostra, i, d, editor; + var grupos, c, raiz, nraiz, mostra, i, d, editor, tempNode; grupos = i3GEO.arvoreDeTemas.GRUPOS.grupos; c = grupos.length - 3; raiz = grupos[c].temasraiz; @@ -1693,7 +1694,7 @@ i3GEO.arvoreDeTemas = { console.info("i3GEO.arvoreDeTemas.montaSubGrupos()"); var temp = function() { - var i, c, mostra, d, tempNode, nraiz, subgrupos, raiz; + var i, c, mostra, d, tempNode, nraiz, subgrupos, raiz, editor; subgrupos = i3GEO.arvoreDeTemas.SUBGRUPOS.subgrupo; c = subgrupos.length; raiz = i3GEO.arvoreDeTemas.SUBGRUPOS.temasgrupo; @@ -2020,7 +2021,7 @@ i3GEO.arvoreDeTemas = { var html, lkmini, lkmini1, lkgrcode, lkgrcode1, n, ogc; if (node.data.fonte && node.data.fonte !== "" && node.data.fonte !== " ") { - tempNode = new YAHOO.widget.HTMLNode({ + new YAHOO.widget.HTMLNode({ isLeaf : true, enableHighlight : false, expanded : false, diff --git a/js/coordenadas.js b/js/coordenadas.js index a8805fb..43b990c 100755 --- a/js/coordenadas.js +++ b/js/coordenadas.js @@ -525,8 +525,8 @@ i3GEO.coordenadas = * */ atualizaCodigo : function(onde, configProj, x, y) { - var ondeValor = $i(onde + configProj + "Codigo"); - onde = $i(onde), temp = i3GEO.coordenadas.config[configProj], codigo = ""; + var ondeValor = $i(onde + configProj + "Codigo"), temp = i3GEO.coordenadas.config[configProj], codigo = ""; + onde = $i(onde); if (onde && onde.style.display === "none") { return; } @@ -917,7 +917,7 @@ i3GEO.coordenadas = * Converte coordeanadas lat long em geohash */ encodeGeoHash : function(latitude, longitude) { - var is_even = 1, lat = [], lon = [], bit = 0, ch = 0, precision = 12, geohash = ""; + var mid, is_even = 1, lat = [], lon = [], bit = 0, ch = 0, precision = 12, geohash = ""; lat[0] = -90.0; lat[1] = 90.0; lon[0] = -180.0; diff --git a/js/dicionario.js b/js/dicionario.js index 4c50c9a..491ec40 100644 --- a/js/dicionario.js +++ b/js/dicionario.js @@ -1,5 +1,5 @@ //utilize $trad("p1") para retornar o texto -g_traducao = +var g_traducao = { // texto da janela de mensagens "p1" : [ diff --git a/js/eventos.js b/js/eventos.js index 29f1725..aba5459 100644 --- a/js/eventos.js +++ b/js/eventos.js @@ -58,7 +58,7 @@ if (typeof (i3GEO) === 'undefined') { * * (end) */ -objposicaocursor = { +var objposicaocursor = { ddx : "", ddy : "", dmsx : "", @@ -546,9 +546,6 @@ i3GEO.eventos = }; docMapa.onmouseout = function() { objposicaocursor.dentroDomapa = false; - try { - objmapaparado = "parar"; - } catch (e) {} }; docMapa.onmousedown = function(exy) { if(objposicaocursor.dentroDomapa === false){ diff --git a/js/gadgets.js b/js/gadgets.js index 73c4019..f0dcc0b 100644 --- a/js/gadgets.js +++ b/js/gadgets.js @@ -546,9 +546,11 @@ i3GEO.gadgets = if (typeof (console) !== 'undefined') console.info("i3GEO.gadgets.mostraMenuSuspenso()"); - var menuUnico, objid, i, estilo, t, onMenuBarBeforeRender, temp, i3GEOoMenuBarLocal, ms = i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso, confm = + var i3GEOoMenuBar, n, menuUnico, objid, i, estilo, t, onMenuBarBeforeRender, temp, i3GEOoMenuBarLocal, ms = i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso, confm = i3GEO.configura.oMenuData, ins = "", alinhamento = ""; + i3GEOoMenuBar = YAHOO.widget.MenuManager; + if (arguments.length === 0) { id = ms.idhtml; } else { @@ -630,7 +632,6 @@ i3GEO.gadgets = if(i3GEO.parametros.w < 700 || ms.menuUnico === true){ menuUnico(); } - i3GEOoMenuBar = YAHOO.widget.MenuManager; if (objid) { objid.className = "yuimenubar"; temp = $i("contemMenu"); diff --git a/js/guias.js b/js/guias.js index 62c8efb..300004d 100755 --- a/js/guias.js +++ b/js/guias.js @@ -1081,7 +1081,7 @@ i3GEO.guias = * Altera a cor do fundo dos ícones, voltando ao original */ desativaIcones : function(o) { - var ims, n, i; + var ims, n, i, temp; if (!o) { o = 0.9; } diff --git a/js/idioma.js b/js/idioma.js index c571454..7bd27e8 100755 --- a/js/idioma.js +++ b/js/idioma.js @@ -427,7 +427,7 @@ i3GEO.idioma = { * * {String} - Texto traduzido. */ -$trad = function(id, dic) { +var $trad = function(id, dic) { if (!dic) { dic = i3GEO.idioma.DICIONARIO; } @@ -437,24 +437,13 @@ $trad = function(id, dic) { }; // (function() { - try { - var c = i3GEO.util.pegaCookie("i3geolingua"); - if (c) { - i3GEO.idioma.define(c); - g_linguagem = c; - } else { - if (typeof (g_linguagem) !== "undefined") { - i3GEO.idioma.define(g_linguagem); - } else { - g_linguagem = "pt"; - i3GEO.idioma.define("pt"); - } - } - if (typeof ('g_traducao') !== "undefined") { - i3GEO.idioma.defineDicionario(g_traducao); - } - } catch (e) { - i3GEO.janela.tempoMsg("Problemas com idiomas " - + e); + var c = i3GEO.util.pegaCookie("i3geolingua"); + if (c) { + i3GEO.idioma.define(c); + } else { + i3GEO.idioma.define("pt"); + } + if (typeof ('g_traducao') !== "undefined") { + i3GEO.idioma.defineDicionario(g_traducao); } })(); \ No newline at end of file diff --git a/js/ini_i3geo.js b/js/ini_i3geo.js index dfa01d5..648a96f 100644 --- a/js/ini_i3geo.js +++ b/js/ini_i3geo.js @@ -69,7 +69,7 @@ * Cada javascript inserido na página adiciona novos objetos, como por * exemplo i3GEOF.buffer. */ -i3GEOF = []; +var i3GEOF = []; /** * Section: YAHOO.i3GEO * @@ -394,7 +394,7 @@ var i3GEO = { // define o valor inicial da variavel que controla as etiquetas quando o // usuario clica no mapa i3GEO.eventos.cliquePerm.ativoinicial = i3GEO.eventos.cliquePerm.ativo; - var montaMapa, mashup, tamanho; + var montaMapa, mashup, tamanho, temp; i3GEO.mapa.aplicaPreferencias(); montaMapa = function(retorno) { try { @@ -752,7 +752,6 @@ var i3GEO = { return; } i3GEO.mapa.verifica(retorno); - tempo = ""; mapscale = i3GEO.parametros.mapscale; i3GEO.atualizaParametros(retorno.data.variaveis); diff --git a/js/interface.js b/js/interface.js index b0213e9..9acf707 100755 --- a/js/interface.js +++ b/js/interface.js @@ -48,6 +48,13 @@ if (typeof (i3GEO) === 'undefined') { var i3GEO = {}; } +// essa variavel guarda a posicao do mapa na tela +// e usada em vercoes com dispositivo touche para melhorar a performance +var i3GEOtouchesPosMapa = ""; + +//variavel que armazena o objeto mapa criado com o OpenLayers +var i3geoOL; + i3GEO.Interface = { /** @@ -1005,12 +1012,16 @@ i3GEO.Interface = }); } i3GEO.util.arvore("" + $trad("p16") + "", "listaLayersBase", temp); - } else { + } + //TODO layerSwitcher talvez volte um dia https://twitter.com/RemiBovard/status/525028570780139520 + /* + else { if (openlayers.GADGETS.LayerSwitcher === true && i3GEO.arvoreDeCamadas.INCLUILFUNDO === false) { // nao existe no OL3 // i3geoOL.addControl(new OpenLayers.Control.LayerSwitcher()); } } + */ if (i3GEO.configura.mapaRefDisplay !== "none") { if (i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")) { diff --git a/js/php.js b/js/php.js index f144e17..fd9ed53 100644 --- a/js/php.js +++ b/js/php.js @@ -75,7 +75,7 @@ if (typeof (i3GEO) === 'undefined') { * isso não afeta em nada) e temp é a função que tratará o retorno dos dados. * */ -cpJSON = new cpaint(); +var cpJSON = new cpaint(); cpJSON.set_response_type("JSON"); cpJSON.set_transfer_mode("POST"); diff --git a/js/util.js b/js/util.js index f00b8a3..59485df 100755 --- a/js/util.js +++ b/js/util.js @@ -42,7 +42,7 @@ if (typeof (i3GEO) === 'undefined') { * * {boolean} */ -navm = false; +var navm = false; /** * Constant: navn * @@ -52,7 +52,7 @@ navm = false; * * {boolean} */ -navn = false; +var navn = false; /** * Constant: chro * @@ -62,7 +62,7 @@ navn = false; * * {boolean} */ -chro = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; +var chro = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; /** * Constant: opera * @@ -72,7 +72,7 @@ chro = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; * * {boolean} */ -opera = navigator.userAgent.toLowerCase().indexOf('opera') > -1; +var opera = navigator.userAgent.toLowerCase().indexOf('opera') > -1; if (navigator.appName.substring(0, 1) === 'N') { navn = true; } @@ -90,12 +90,12 @@ if (opera === true) { * * Essas operacoes sao controladas pela funcao ajaxiniciaparametros. */ -g_operacao = ""; +var g_operacao = ""; /** * Depreciado - Tipo de acao que esta sendo executada. Quando o usuario clica no mapa, essa variavel e pesquisada para definir o tipo de * operacao que deve ser executada. E definida quando o usuario seleciona uma determinada ferramenta do i3Geo. */ -g_tipoacao = "zoomli"; +var g_tipoacao = "zoomli"; /** * Function: $i @@ -110,7 +110,10 @@ g_tipoacao = "zoomli"; * * {Object} */ -$i = function(id) { +var $i = function(id) { + if(!id || id === ""){ + return false; + } return document.getElementById(id); }; /** @@ -1221,6 +1224,7 @@ i3GEO.util = * {boolean} - mostra ou nao a janela de aguarde */ scriptTag : function(js, ini, id, aguarde) { + var head, script; /* * if (!aguarde) { aguarde = false; } var head, script, tipojanela = ""; if (i3GEO.janela) { tipojanela = * i3GEO.janela.ESTILOAGUARDE; } @@ -1453,7 +1457,7 @@ i3GEO.util = var monta, temp, temp1, temp2; monta = function(retorno) { - var i, comboTemas = '', n, nome = ""; + var i, comboTemas = '', n, nome = "", tema; if (yui === true) { comboTemas = ''; @@ -2815,6 +2819,7 @@ i3GEO.util = * {function} - função que irá processar o resultado */ ajaxGet : function(sUrl, funcaoRetorno) { + var re,falhou, callback; sUrl = escape(sUrl); re = new RegExp("%3F", "g"); sUrl = sUrl.replace(re, '?'); @@ -2825,8 +2830,9 @@ i3GEO.util = re = new RegExp("%3A", "g"); sUrl = sUrl.replace(re, ':'); - var falhou = function(e) { - }, callback = { + falhou = function(e) { + }; + callback = { success : function(o) { try { funcaoRetorno.call("", YAHOO.lang.JSON.parse(o.responseText)); @@ -3536,12 +3542,12 @@ try { // alias // depreciado na versao 6.0 -$im = function(g) { +var $im = function(g) { return i3GEO.util.$im(g); }; -$inputText = function(idPai, larguraIdPai, idInput, titulo, digitos, valor, nome, onch) { +var $inputText = function(idPai, larguraIdPai, idInput, titulo, digitos, valor, nome, onch) { if (arguments.length === 6) { nome = ""; } return i3GEO.util.$inputText(idPai, larguraIdPai, idInput, titulo, digitos, valor, nome, onch); -}; +}; \ No newline at end of file diff --git a/pacotes/eudock/js/euDock.2.0.js b/pacotes/eudock/js/euDock.2.0.js index 72e25cd..382e58b 100644 --- a/pacotes/eudock/js/euDock.2.0.js +++ b/pacotes/eudock/js/euDock.2.0.js @@ -882,7 +882,7 @@ function on_MouseUp(e) { }; function on_MouseClick(e) { - if (!e) var e = window.event; + if (!e) e = window.event; for (var i in euEnv.euDockArray) if (euEnv.euDockArray[i].mouseClick) euEnv.exeThread |= euEnv.euDockArray[i].mouseClick(euEnv.euScrOfX+e.clientX,euEnv.euScrOfY+e.clientY); -- libgit2 0.21.2