aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorStruan Donald <struan@fury.ukcod.org.uk>2011-12-02 12:07:02 +0000
committerStruan Donald <struan@fury.ukcod.org.uk>2011-12-02 12:07:02 +0000
commitcf18971b17ac33efa808b6e0e31c8d4198016136 (patch)
tree48f66f4f188122d214a04ee0959d166e65516f49 /web/js/map-OpenLayers.js
parente87204b9c348c3342dd09f3398404234541557ba (diff)
make sure pins are visible once they click on the map (fixes #168)
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js6
1 files changed, 6 insertions, 0 deletions
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;
}