aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorJosh Angell <josh@supercooldesign.co.uk>2012-03-01 16:37:31 +0000
committerJosh Angell <josh@supercooldesign.co.uk>2012-03-01 16:37:31 +0000
commit37ddd5723ea69097f83c24ff279c3865ba8dc102 (patch)
tree0943ce5eca675db9541c0e80061f9be9dc0eac85 /web/js/map-OpenLayers.js
parentd180953fab70128ce1e8215d98177456482d6051 (diff)
parentd04f5d84ca070718e5ce28ab8c45db5bec03c442 (diff)
Merge branch 'supercool' of ssh://github.com/mysociety/fixmystreet into supercool
Conflicts: web/js/map-OpenLayers.js Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 414bb1fc5..abee9ebfa 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -473,12 +473,12 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
$('html, body').animate({scrollTop:0}, 1000);
}else{
var height = $('#map_box').height();
- $('html, body').animate({scrollTop:height-60}, 1000);
+ $('html, body').animate({scrollTop:height-60}, 1000, function(){
+ //add this class so we can modify the look of the links inside
+ $('#mob_sub_map_links').addClass('map_complete');
+ $('#mob_ok').text('MAP');
+ });
}
-
- //add this class so we can modify the look of the links inside
- $('#mob_sub_map_links').addClass('map_complete');
- $('#mob_ok').text('MAP');
});
}