diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 3 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/staff.js | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 9368d8cc9..4d38c81d2 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -1042,6 +1042,7 @@ fixmystreet.display = { $('body').addClass('with-actions'); fixmystreet.run(fixmystreet.set_up.report_page_inspect); fixmystreet.run(fixmystreet.set_up.manage_duplicates); + fixmystreet.run(fixmystreet.set_up.action_scheduled_raise_defect); } else { $sideReport.appendTo('#map_sidebar'); } @@ -1052,7 +1053,7 @@ fixmystreet.display = { fixmystreet.page = 'report'; fixmystreet.mobile_reporting.remove_ui(); - if ($('html').hasClass('mobile') && fixmystreet.map.updateSize) { + if (fixmystreet.map.updateSize && ($twoColReport.length || $('html').hasClass('mobile'))) { fixmystreet.map.updateSize(); } 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(); }); }, |