aboutsummaryrefslogtreecommitdiffstats
path: root/web/cobrands/bexley/js.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-08-29 22:36:28 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-08-29 22:36:28 +0100
commitbe0da54c728359938cfe003107921a8e5e73036e (patch)
treeec53453033e1d62452901cba17f617c5dd684d23 /web/cobrands/bexley/js.js
parentb2729d3233f373b6f7bbff7c16eaae838a581a5f (diff)
parent7a8dcd6b60877c37df6961abf6743981966dc30c (diff)
Merge branch 'issues/1515-disable-form-flag'
Diffstat (limited to 'web/cobrands/bexley/js.js')
-rw-r--r--web/cobrands/bexley/js.js23
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.'
-});
-
})();