diff options
author | Josh Angell <josh@supercooldesign.co.uk> | 2012-02-27 15:45:03 +0000 |
---|---|---|
committer | Josh Angell <josh@supercooldesign.co.uk> | 2012-02-27 15:45:03 +0000 |
commit | bff1a3e8a0c4a730bf2da235b99c01357ae5a84a (patch) | |
tree | a42d412a8d105ae5ff747dc1057b1839d32ef908 | |
parent | 1032116623200d6dda3ed9010750835b4c5d3d30 (diff) |
Move back to top on 'show notes' at /report/new on mobile
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 125ef2cae..c035fe32a 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -254,6 +254,7 @@ $(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); }); $('.mobile').on('click', '.rap-notes-close', function(e){ e.preventDefault(); |