From e76b6ded6b23e4c8e133605841f1aba9291c55eb Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Thu, 1 Mar 2012 13:17:40 +0000 Subject: Initial scroll event for when user clicks ok on mobile map, also altered how the Notes scroll so they use offset instead Signed-off-by: Josh Angell --- web/js/map-OpenLayers.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'web/js/map-OpenLayers.js') 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, { '

' ); $('.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'; -- cgit v1.2.3