diff options
author | Josh Angell <josh@supercooldesign.co.uk> | 2012-03-01 15:46:25 +0000 |
---|---|---|
committer | Josh Angell <josh@supercooldesign.co.uk> | 2012-03-01 15:46:25 +0000 |
commit | 0b06d212c635a6696c41e339e56b1e0c058f10a1 (patch) | |
tree | 53c79130887dbbd843acef7ec9c0275cf0c69ead /web/js/map-OpenLayers.js | |
parent | dc8017ed922114406559716466349374206c37f1 (diff) |
Add class for when map is 'complete'
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 5 |
1 files changed, 4 insertions, 1 deletions
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( '<p id="mob_sub_map_links">' + - '<a href="#">Try again</a>' + + '<a href="#" id="try_again">Try again</a>' + '<a href="#ok" id="mob_ok">OK</a>' + '</p>' ); @@ -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'); }); } |