]> git.openstreetmap.org Git - rails.git/commitdiff
Prevent map popup from disappearing on mouseout
authorMartijn van Exel <mvexel@gmail.com>
Sat, 29 Oct 2011 18:24:38 +0000 (12:24 -0600)
committerTom Hughes <tom@compton.nu>
Mon, 31 Oct 2011 10:34:41 +0000 (10:34 +0000)
By stopping it closing we allow the user to click on the name of any
nearby mappers or friends in the map on the user page.

public/javascripts/map.js

index 58950a1ffa14b724e3a8296d3b3b2c89e3a52ae5..61393894b13028343aa4a2601262c5441169eae0 100644 (file)
@@ -99,7 +99,6 @@ function addMarkerToMap(position, icon, description) {
 
    if (description) {
       marker.events.register("mouseover", marker, function() { openMapPopup(marker, description) });
 
    if (description) {
       marker.events.register("mouseover", marker, function() { openMapPopup(marker, description) });
-      marker.events.register("mouseout", marker, function() { closeMapPopup() });
    }
 
    return marker;
    }
 
    return marker;