aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/fixmystreet.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/fixmystreet.js')
-rw-r--r--web/js/fixmystreet.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index 7a512fdf5..9cb48bb9d 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -240,7 +240,7 @@ $(function(){
heightFix('#report-a-poblem-sidebar:visible', '.content', 26);
}
- //show/hide on mobile
+ //show/hide notes on mobile
$('.mobile #report-a-poblem-sidebar').after('<a href="#" class="rap-notes-trigger button-right">How to send successful reports</a>').hide();
$('.mobile').on('click', '.rap-notes-trigger', function(e){
e.preventDefault();
@@ -255,14 +255,17 @@ $(function(){
$('#report-a-poblem-sidebar').appendTo('.rap-notes').show().after('<a href="#" class="rap-notes-close button-left">BACK</a>');
}
});
-
$('.mobile').on('click', '.rap-notes-close', function(e){
- //hide notes, show .content
e.preventDefault();
+ //hide notes, show .content
$('.mobile .content').show();
$('.rap-notes').hide();
+ $('html, body').animate({scrollTop:0}, 1000);
});
+ //move 'skip this step' link on mobile
+ $('.mobile #skip-this-step').hide();
+ $('.mobile #skip-this-step a').appendTo('#key-tools').addClass('chevron').wrap('<li>');
/*
* Tabs