diff options
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 89059eae9..7b0cc936b 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -456,6 +456,13 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { '</p>' ); $('.mobile-map-banner').text('Right place?'); + + // mobile user clicks 'ok' on map + $('#mob_ok').on('click', function(e){ + e.preventDefault(); + var height = $('#map_box').height(); + $('html, body').animate({scrollTop:height}, 1000); + }); } fixmystreet.page = 'new'; |