diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/staff.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/staff.js b/web/cobrands/fixmystreet/staff.js index dd65bc3ce..134f57a7f 100644 --- a/web/cobrands/fixmystreet/staff.js +++ b/web/cobrands/fixmystreet/staff.js @@ -185,7 +185,14 @@ $.extend(fixmystreet.set_up, { $addAlertCheckbox.prop('checked', true).prop('disabled', false); } else if (val === 'another_user') { $emailInput.val('').prop('disabled', false); - $emailOptionalLabel.removeClass('hidden'); + if (!$phoneInput.length) { + // Cobrand may have disabled collection of phone numbers. + $emailOptionalLabel.addClass('hidden'); + $emailInput.addClass('required'); + } else { + $emailOptionalLabel.removeClass('hidden'); + $emailInput.removeClass('required'); + } $nameInput.val('').prop('disabled', false); $phoneInput.val('').prop('disabled', false); $showNameCheckbox.prop('checked', false).prop('disabled', true); |