aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/bathnes/assets.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/cobrands/bathnes/assets.js b/web/cobrands/bathnes/assets.js
index 7a32facc9..aa06a6fbb 100644
--- a/web/cobrands/bathnes/assets.js
+++ b/web/cobrands/bathnes/assets.js
@@ -201,6 +201,22 @@ fixmystreet.assets.add(fixmystreet.maps.banes_defaults, {
attribute: 'usrn',
field: 'site_code'
},
+ road: true,
+ asset_item: "road",
+ asset_type: 'road',
+ all_categories: true, // Not really, but want to allow on all but one, not stop
+ no_asset_msg_id: '#js-not-a-road',
+ actions: {
+ found: fixmystreet.message_controller.road_found,
+ not_found: function(layer) {
+ var cat = $('select#form_category').val();
+ if (cat === 'Damage to road') {
+ fixmystreet.message_controller.road_not_found(layer);
+ } else {
+ fixmystreet.message_controller.road_found(layer);
+ }
+ }
+ },
name: "Adopted Highways",
attribution: " © Crown Copyright. All rights reserved. 1000233344"
});