aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-12-05 10:26:14 +0000
committerStruan Donald <struan@exo.org.uk>2011-12-05 10:26:14 +0000
commite816c4cbe34f138d0ce5659000955b75745da009 (patch)
tree201d1ff3be5089d8164fc49e9378431df6d4e4d6 /web/js/map-OpenLayers.js
parent0f43cd3b8fbe82256c052aaad65c6a16e3668cbe (diff)
parent2d5b9baccc489cb3acb77d87523328ecc131c40e (diff)
Merge remote branch 'origin/master'
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;
}