diff options
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index d39b6a0e9..60fbb723b 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -932,7 +932,9 @@ $.extend(fixmystreet.set_up, { }); $('.js-new-report-user-show').click(function(e) { e.preventDefault(); - if (!$(this).closest('form').validate().form()) { + var v = $(this).closest('form').validate(); + if (!v.form()) { + v.focusInvalid(); return; } $('.js-new-report-user-hidden')[0].scrollIntoView({behavior: "smooth"}); |