aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Angell <josh@supercooldesign.co.uk>2012-03-01 10:08:10 +0000
committerJosh Angell <josh@supercooldesign.co.uk>2012-03-01 10:08:10 +0000
commit5ce989e900d8cfffd244145c7a9e97105457752c (patch)
tree8e8abba8691bdd8194f1c25fff9929ab18f9470c
parent45a9ac82101fd9f26a0206df5fa2846b0b2cad5b (diff)
Fix sub_map_links shooting off the page on close for the first viewing
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index f1c48c9e0..4ff8d935a 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -351,8 +351,9 @@ $(function(){
$('#sub_map_links').prepend('<span id="map_links_toggle">&nbsp;</span>');
//set up map_links_toggle click event
- var maplinks_width = $('#sub_map_links').width()+16;
$('#map_links_toggle').on('click', function(){
+ var maplinks_width = $('#sub_map_links').width();
+
if($(this).hasClass('closed')){
$(this).removeClass('closed');
$('#sub_map_links').animate({'right':'0'}, 1200);