From a96fe8cb2a5c90d4893540647a0cada3c74dacad Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 26 Feb 2016 16:10:59 -0300 Subject: [PATCH] Correção na listagem de plugins no editor de mapfiles. Estava listando duas vezes. --- admin/js/editormapfile_layer.js | 6 +++++- imagens/apple-touch-icon.png | Bin 11097 -> 0 bytes 2 files changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 imagens/apple-touch-icon.png diff --git a/admin/js/editormapfile_layer.js b/admin/js/editormapfile_layer.js index e9145c2..d32c61e 100755 --- a/admin/js/editormapfile_layer.js +++ b/admin/js/editormapfile_layer.js @@ -10,6 +10,10 @@ function montaNoLayer(codigo,indice){ } function loadLayerData(node, fnLoadComplete) { + //verifica se ja carregou os dados do layer + if(tree.getNodeByProperty("etiquetaDados",node.data.codigoMap+"_"+node.data.codigoLayer)){ + return; + } var sUrl = "../php/editormapfile.php?funcao=listaClasses&codigoMap="+node.data.codigoMap+"&codigoLayer="+node.data.codigoLayer; var callback = { @@ -133,7 +137,7 @@ function montaParametrosTemas(no,dados,redesenha) tempNode.enableHighlight = false; } - if(!tree.getNodeByProperty("pluginI3geo",id)) + if(!tree.getNodeByProperty("etiquetaPluginI3geo",id)) { d = {id:id,codigoLayer:codigoLayer,tipo:"pluginI3geo",etiquetaPluginI3geo:id,html:" "+ $trad("pluginLayer",i3GEOadmin.editormapfile.dicionario) +""}; tempNodeR = new YAHOO.widget.HTMLNode(d, no, false,true); diff --git a/imagens/apple-touch-icon.png b/imagens/apple-touch-icon.png old mode 100644 new mode 100755 index 7da5f23..7da5f23 Binary files a/imagens/apple-touch-icon.png and b/imagens/apple-touch-icon.png differ -- libgit2 0.21.2