aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-05-16 17:59:34 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-06-04 09:57:17 +0100
commitb04539a98ddf785cdb8ffd21eb2263a9efdc382a (patch)
tree15a9d7e8a876db8ec7a7702f387c167d0c4f51e5
parentac561af4b17662401a16040652e2df3b8c1c1c22 (diff)
Tweak asset message text, allow override.
-rw-r--r--web/cobrands/fixmystreet/assets.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js
index 9a72590fd..7928b6941 100644
--- a/web/cobrands/fixmystreet/assets.js
+++ b/web/cobrands/fixmystreet/assets.js
@@ -312,9 +312,13 @@ function check_zoom_message_visibility() {
}
if (this.getVisibility() && this.inRange) {
- $p.html('Or pick a <b class="asset-' + this.fixmystreet.asset_type + '">' + this.fixmystreet.asset_item + '</b> from the map &raquo;');
+ if (this.fixmystreet.asset_item_message) {
+ $p.html(this.fixmystreet.asset_item_message);
+ } else {
+ $p.html('You can pick a <b class="asset-' + this.fixmystreet.asset_type + '">' + this.fixmystreet.asset_item + '</b> from the map &raquo;');
+ }
} else {
- $p.html('Or zoom in and pick a ' + this.fixmystreet.asset_item + ' from the map');
+ $p.html('Zoom in to pick a ' + this.fixmystreet.asset_item + ' from the map');
}
} else {