From cf18971b17ac33efa808b6e0e31c8d4198016136 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Fri, 2 Dec 2011 12:07:02 +0000 Subject: make sure pins are visible once they click on the map (fixes #168) --- web/js/map-OpenLayers.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/js/map-OpenLayers.js') diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index b911b7c71..c8bdb85df 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -308,6 +308,12 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { fixmystreet_activate_drag(); } fixmystreet_update_pin(lonlat); + // check to see if markers are visible. We click the + // link so that it updates the text in case they go + // back + if ( ! fixmystreet.markers.getVisibility() ) { + $('#hide_pins_link').click(); + } if (fixmystreet.page == 'new') { return; } -- cgit v1.2.3