From 0b06d212c635a6696c41e339e56b1e0c058f10a1 Mon Sep 17 00:00:00 2001 From: Josh Angell Date: Thu, 1 Mar 2012 15:46:25 +0000 Subject: Add class for when map is 'complete' Signed-off-by: Josh Angell --- web/js/map-OpenLayers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'web/js/map-OpenLayers.js') diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 87400c9d8..2328fc6a3 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -451,7 +451,7 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { $('#sub_map_links').hide(); $('#map_box').append( '' ); @@ -465,6 +465,9 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { //to do this on other pages where #side-form might not be var height = $('#map_box').height(); $('html, body').animate({scrollTop:height}, 1000); + + //add this class so we can modify the look of the links inside + $('#mob_sub_map_links').addClass('map_complete'); }); } -- cgit v1.2.3