diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-09-10 16:29:38 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-09-17 11:13:33 +0100 |
commit | 89529c8907c9c6e8edff3e8a0a75827a1e65f502 (patch) | |
tree | 6d9063b5f57d9510ad9d70fa524cc505a8edc668 /web | |
parent | 3475052b5096f91bbbf335b03f1912b6012ea5bb (diff) |
Update URL hash when menu nav button clicked.
Diffstat (limited to 'web')
-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 0951eaff7..9bd8c5fd5 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -183,6 +183,7 @@ $(function(){ e.preventDefault(); var offset = $('#main-nav').offset().top; $('html, body').animate({scrollTop:offset}, 1000); + window.location.hash = 'main-nav'; }); |