diff options
author | Josh Angell <josh@supercooldesign.co.uk> | 2012-03-01 09:54:22 +0000 |
---|---|---|
committer | Josh Angell <josh@supercooldesign.co.uk> | 2012-03-01 09:54:22 +0000 |
commit | d06e85bdfe2b5262ad7db359f156d40719bc9877 (patch) | |
tree | 332b485a18978d43aad47fa5f20c142b1b030657 | |
parent | 4c6fe90795c6f1597775ad317798a6c75f8f27f9 (diff) |
Remove animation from report a problem nots on mobile
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index ae7b2e820..3507dc231 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -262,14 +262,14 @@ $(function(){ $('.mobile .content').after('<div class="content rap-notes"></div>').hide(); $('#report-a-problem-sidebar').appendTo('.rap-notes').show().after('<a href="#" class="rap-notes-close button-left">BACK</a>'); } - $('html, body').animate({scrollTop:0}, 1000); + $('html, body').scrollTop(0); }); $('.mobile').on('click', '.rap-notes-close', function(e){ e.preventDefault(); //hide notes, show .content $('.mobile .content').show(); $('.rap-notes').hide(); - $('html, body').animate({scrollTop:0}, 1000); + $('html, body').scrollTop(0); }); //move 'skip this step' link on mobile |