Commit a96fe8cb2a5c90d4893540647a0cada3c74dacad

Authored by Edmar Moretti
1 parent 23207534
Exists in master

Correção na listagem de plugins no editor de mapfiles. Estava listando duas vezes.

admin/js/editormapfile_layer.js
@@ -10,6 +10,10 @@ function montaNoLayer(codigo,indice){ @@ -10,6 +10,10 @@ function montaNoLayer(codigo,indice){
10 } 10 }
11 function loadLayerData(node, fnLoadComplete) 11 function loadLayerData(node, fnLoadComplete)
12 { 12 {
  13 + //verifica se ja carregou os dados do layer
  14 + if(tree.getNodeByProperty("etiquetaDados",node.data.codigoMap+"_"+node.data.codigoLayer)){
  15 + return;
  16 + }
13 var sUrl = "../php/editormapfile.php?funcao=listaClasses&codigoMap="+node.data.codigoMap+"&codigoLayer="+node.data.codigoLayer; 17 var sUrl = "../php/editormapfile.php?funcao=listaClasses&codigoMap="+node.data.codigoMap+"&codigoLayer="+node.data.codigoLayer;
14 var callback = 18 var callback =
15 { 19 {
@@ -133,7 +137,7 @@ function montaParametrosTemas(no,dados,redesenha) @@ -133,7 +137,7 @@ function montaParametrosTemas(no,dados,redesenha)
133 tempNode.enableHighlight = false; 137 tempNode.enableHighlight = false;
134 } 138 }
135 139
136 - if(!tree.getNodeByProperty("pluginI3geo",id)) 140 + if(!tree.getNodeByProperty("etiquetaPluginI3geo",id))
137 { 141 {
138 d = {id:id,codigoLayer:codigoLayer,tipo:"pluginI3geo",etiquetaPluginI3geo:id,html:"<i>&nbsp;"+ $trad("pluginLayer",i3GEOadmin.editormapfile.dicionario) +"</i>"}; 142 d = {id:id,codigoLayer:codigoLayer,tipo:"pluginI3geo",etiquetaPluginI3geo:id,html:"<i>&nbsp;"+ $trad("pluginLayer",i3GEOadmin.editormapfile.dicionario) +"</i>"};
139 tempNodeR = new YAHOO.widget.HTMLNode(d, no, false,true); 143 tempNodeR = new YAHOO.widget.HTMLNode(d, no, false,true);
imagens/apple-touch-icon.png 100644 → 100755

10.8 KB | W: | H:

10.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin