diff options
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 3 |
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"> </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); |