diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-11-28 14:18:50 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-11-28 14:18:50 +0000 |
commit | 82d08bb2a2b9f5c5ad594e65ad218e25050d62d7 (patch) | |
tree | 8319d1648ec70a2c93d6501af3729170eda7d540 | |
parent | 8531ba29675c046d71f6e99e3ad2f6cd72a3c584 (diff) |
Scroll to report inspect form if present.
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index fed983a2c..b6fed1591 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -563,6 +563,9 @@ $.extend(fixmystreet.set_up, { return; } + // Focus on form + $('html,body').scrollTop($('#report_inspect_form').offset().top); + // On the manage/inspect report form, we already have all the extra inputs // in the DOM, we just need to hide/show them as appropriate. $('form#report_inspect_form [name=category]').change(function() { |