diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/staff.js | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d54eafb2..48657c10c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Bugfixes: - Set up action scheduled field when report loaded. #1789 - Stop errors from JS validator due to form in form. + - Stop update form toggle causing report submission. * v2.1.1 (3rd August 2017) - Email improvements: diff --git a/web/cobrands/fixmystreet/staff.js b/web/cobrands/fixmystreet/staff.js index 2a1c6a8f4..2f9de6c7e 100644 --- a/web/cobrands/fixmystreet/staff.js +++ b/web/cobrands/fixmystreet/staff.js @@ -312,7 +312,8 @@ $.extend(fixmystreet.set_up, { $updateFormH2.hide().nextAll().hide(); $updateFormBtn.addClass('btn btn--provide-update'); $updateFormBtn.text( $updateFormH2.text() ); - $updateFormBtn.on('click', function(){ + $updateFormBtn.on('click', function(e) { + e.preventDefault(); $updateFormH2.nextAll().toggle(); }); }, |