kopia lustrzana https://github.com/FacilMap/facilmap
Properly closing popups again on second click
rodzic
f6cb4bbe24
commit
eb2ecc9d2e
|
@ -154,7 +154,7 @@
|
|||
map.mapEvents.$on("clickLine", function(e, line, clickPos, evt) {
|
||||
var one = false;
|
||||
map.popups.getOpenPopups().forEach(function(popup) {
|
||||
if(popup.template == "view-line.html" && popup.scope.line.id == line.id) {
|
||||
if(popup.template == "map/lines/view-line.html" && popup.scope.line.id == line.id) {
|
||||
popup.close();
|
||||
if(popup.pos.lon == clickPos.lon && popup.pos.lat == clickPos.lat)
|
||||
one = true;
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
map.mapEvents.$on("clickMarker", function(e, marker, evt) {
|
||||
var one = false;
|
||||
map.popups.getOpenPopups().forEach(function(popup) {
|
||||
if(popup.template == "view-marker.html" && popup.scope.marker.id == marker.id) {
|
||||
if(popup.template == "map/markers/view-marker.html" && popup.scope.marker.id == marker.id) {
|
||||
popup.close();
|
||||
one = true;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue