diff options
author | Dave Arter <davea@mysociety.org> | 2019-08-14 16:06:41 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-08-29 18:12:38 +0100 |
commit | 7570b9d1d95ec5a5ee58df69feab487be78831aa (patch) | |
tree | 3ae88581f4b97ec09e729395d5030bffaac2e6a8 /web/cobrands/bexley/js.js | |
parent | 39fd4d22fec9425743b0a9ebced6d1b73c3d857b (diff) |
Add admin to disable reporting form per category.
Remove all existing hard-coded register_category calls, and have
a new way of implementing staff_ignore.
Diffstat (limited to 'web/cobrands/bexley/js.js')
-rw-r--r-- | web/cobrands/bexley/js.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/web/cobrands/bexley/js.js b/web/cobrands/bexley/js.js index f2ee820b2..d0f2e8963 100644 --- a/web/cobrands/bexley/js.js +++ b/web/cobrands/bexley/js.js @@ -111,28 +111,5 @@ fixmystreet.assets.add(defaults, { asset_item: 'public toilet' }); -// We need to trigger the below function on subcategory change also -$(function(){ - $("#problem_form").on("change.category", "#form_DALocation", function() { - $(fixmystreet).trigger('report_new:category_change'); - }); -}); - -fixmystreet.message_controller.register_category({ - body: defaults.body, - category: function() { - var cat = $('#form_category').val(); - if (cat === 'Dead animal') { - var where = $('#form_DALocation').val(); - if (where === 'Garden' || where === 'Other private property') { - return true; - } - } - return false; - }, - keep_category_extras: true, - message: 'Please follow the link below to pay to remove a dead animal from a private property.' -}); - })(); |