aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands
diff options
context:
space:
mode:
Diffstat (limited to 'web/cobrands')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index a9341d949..cdf1c6af7 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -268,14 +268,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').scrollTop(0);
+ $('html, body').scrollTop($('#report-a-problem-sidebar').offset().top);
});
$('.mobile').on('click', '.rap-notes-close', function(e){
e.preventDefault();
//hide notes, show .content
$('.mobile .content').show();
$('.rap-notes').hide();
- $('html, body').scrollTop(0);
+ $('html, body').scrollTop($('#report-a-problem-main').offset().top);
});
//move 'skip this step' link on mobile