Commit a96fe8cb2a5c90d4893540647a0cada3c74dacad
1 parent
23207534
Exists in
master
Correção na listagem de plugins no editor de mapfiles. Estava listando duas vezes.
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
admin/js/editormapfile_layer.js
... | ... | @@ -10,6 +10,10 @@ function montaNoLayer(codigo,indice){ |
10 | 10 | } |
11 | 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 | 17 | var sUrl = "../php/editormapfile.php?funcao=listaClasses&codigoMap="+node.data.codigoMap+"&codigoLayer="+node.data.codigoLayer; |
14 | 18 | var callback = |
15 | 19 | { |
... | ... | @@ -133,7 +137,7 @@ function montaParametrosTemas(no,dados,redesenha) |
133 | 137 | tempNode.enableHighlight = false; |
134 | 138 | } |
135 | 139 | |
136 | - if(!tree.getNodeByProperty("pluginI3geo",id)) | |
140 | + if(!tree.getNodeByProperty("etiquetaPluginI3geo",id)) | |
137 | 141 | { |
138 | 142 | d = {id:id,codigoLayer:codigoLayer,tipo:"pluginI3geo",etiquetaPluginI3geo:id,html:"<i> "+ $trad("pluginLayer",i3GEOadmin.editormapfile.dicionario) +"</i>"}; |
139 | 143 | tempNodeR = new YAHOO.widget.HTMLNode(d, no, false,true); | ... | ... |