|
@@ -389,7 +389,10 @@ $(document).ready(function() {
|
|
|
map.eachLayer(function(layer){
|
|
|
if (layer._id == data.node.id) {
|
|
|
var popupContent = "<b>" + vectorData.name + "</b><br/>" + vectorData.description + " <div style='text-align:center;margin-top:5px'><a target='_blank' href='/admin/map/vector/" + vectorData.id + "/edit'>EDITAR</a></div>";
|
|
|
- layer.bindPopup(popupContent).openPopup();
|
|
|
+ layer.bindPopup(popupContent);
|
|
|
+ if (!layer._popup.isOpen()) {
|
|
|
+ layer.openPopup();
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
})
|