aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/cobrands/fixmystreet/assets.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js
index 01c74be56..8df7680e9 100644
--- a/web/cobrands/fixmystreet/assets.js
+++ b/web/cobrands/fixmystreet/assets.js
@@ -92,7 +92,7 @@ fixmystreet.roads = {
selected_road = null;
}
if (selected_road) {
- fixmystreet.roads.found();
+ fixmystreet.roads.found(road_layer);
} else {
fixmystreet.roads.not_found();
}
@@ -101,19 +101,21 @@ fixmystreet.roads = {
}
},
- found: function() {
+ found: function(layer) {
var msg = "This road may not be the responsibility of Bromley Borough Council";
if ( $('#road-warning').length ) {
$('#road-warning').text(msg);
} else {
$('.change_location').after('<div class="box-warning" id="road-warning">' + msg + '</div>');
}
+ $('#single_body_only').val(layer.fixmystreet.body);
},
not_found: function() {
if ( $('#road-warning').length ) {
$('#road-warning').remove();
}
+ $('#single_body_only').val('');
},
};