diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-10-09 17:25:29 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-10-10 09:07:15 +0100 |
commit | 5bd39db75d55b3ec3aa54c96f6d04c5f554ba4cf (patch) | |
tree | 5def6cc227f22b30ac0158d8e9f0910097e380f6 | |
parent | 2213d77a228283d7a30acab1c171ac29df88ed95 (diff) |
Do not prefill with ‘Pick a category’.
-rw-r--r-- | web/cobrands/fixmystreet/staff.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/staff.js b/web/cobrands/fixmystreet/staff.js index 072427053..77247d7a6 100644 --- a/web/cobrands/fixmystreet/staff.js +++ b/web/cobrands/fixmystreet/staff.js @@ -370,6 +370,7 @@ $(fixmystreet).on('display:report', function() { $(fixmystreet).on('report_new:category_change', function() { var $this = $('#form_category'); var category = $this.val(); + if (category === '-- Pick a category --') { return; } var prefill_reports = $this.data('prefill'); var display_names = fixmystreet.reporting_data.display_names || {}; var body = display_names[ $this.data('body') ] || $this.data('body'); |