Skip to content

Commit

Permalink
[Bromley] Update park layer for floating message.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jan 28, 2025
1 parent cb3a375 commit 849b649
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions web/cobrands/fixmystreet-uk-councils/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,11 @@ fixmystreet.assets.bromley.unset_asset_owner = function() {
};

fixmystreet.assets.bromley.remove_park_message = function(layer) {
$('.js-bromley-park-message').remove();
delete layer.map_messaging.asset;
};

fixmystreet.assets.bromley.add_park_message = function(layer) {
var $msg = $('<div class="box-warning js-bromley-park-message"></div>');
$msg.html(layer.fixmystreet.no_asset_message);
if ($('.js-bromley-park-message').length) {
$('.js-bromley-park-message').replaceWith($msg);
} else {
$msg.appendTo('.js-reporting-page--active .js-post-category-messages');
}
layer.map_messaging.asset = layer.fixmystreet.no_asset_message;
};

/* Buckinghamshire */
Expand Down

0 comments on commit 849b649

Please sign in to comment.