diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-09-03 16:32:17 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-09-03 17:06:36 +0100 |
commit | 0f62373a064790c83ea69726e2d6933c5b7c41aa (patch) | |
tree | 2810c20384d5babe98400802705e117ee89d6b11 | |
parent | 4b7da24b5d2605d25c45bbeef1328f8118334b31 (diff) |
[UK] Empty category meta when HE selected.
Any message being included there will be for the appropriate council and
not relevant.
-rw-r--r-- | web/cobrands/highways/assets.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/cobrands/highways/assets.js b/web/cobrands/highways/assets.js index f24ad66f5..dc0c43468 100644 --- a/web/cobrands/highways/assets.js +++ b/web/cobrands/highways/assets.js @@ -55,6 +55,7 @@ fixmystreet.assets.add(defaults, { if ( !fixmystreet.assets.selectedFeature() ) { fixmystreet.body_overrides.only_send('Highways England'); add_highways_warning(feature.attributes.ROA_NUMBER); + $('#category_meta').empty(); } }, not_found: function(layer) { @@ -81,6 +82,7 @@ function add_highways_warning(road_name) { fixmystreet.body_overrides.location = null; fixmystreet.body_overrides.only_send('Highways England'); $(fixmystreet).trigger('report_new:highways_change'); + $('#category_meta').empty(); }) .appendTo($radios); $('<label>') |