diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-11-14 10:53:47 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-11-16 10:57:27 +0000 |
commit | fcd9f9943059d6f70091951c576e704e5d80b7f1 (patch) | |
tree | 9607fc0fe3d3c35912bc942e0b92cdc632d73a6a /web | |
parent | 723b0dc09a43d6578fa61963c4b096ff19133902 (diff) |
Scroll to form top when going to/from moderation.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/staff.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/staff.js b/web/cobrands/fixmystreet/staff.js index 2f2de7b20..a52595802 100644 --- a/web/cobrands/fixmystreet/staff.js +++ b/web/cobrands/fixmystreet/staff.js @@ -379,6 +379,7 @@ $.extend(fixmystreet.set_up, { $elem.find('.js-moderate').on('click', function () { $elem.find('.moderate-display').hide(); $elem.find('.moderate-edit').show(); + $('#map_sidebar').scrollTop(0); }); $elem.find('.revert-title').change( function () { @@ -400,6 +401,7 @@ $.extend(fixmystreet.set_up, { $elem.find('.cancel').click( function () { $elem.find('.moderate-display').show(); $elem.find('.moderate-edit').hide(); + $('#map_sidebar').scrollTop(0); }); $elem.find('form').submit( function () { |