diff options
-rw-r--r-- | web/cobrands/fixmystreet/assets.js | 6 | ||||
-rw-r--r-- | web/cobrands/northamptonshire/assets.js | 2 | ||||
-rw-r--r-- | web/cobrands/westminster/assets.js | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js index c311b0f5f..c7470e527 100644 --- a/web/cobrands/fixmystreet/assets.js +++ b/web/cobrands/fixmystreet/assets.js @@ -1212,11 +1212,11 @@ fixmystreet.message_controller = (function() { return ($('#' + stopperId).length); }, - asset_not_found: function(layer) { - if (!layer.visibility) { + asset_not_found: function() { + if (!this.visibility) { responsibility_off(); } else { - responsibility_on('#js-not-an-asset', layer.fixmystreet.asset_item, layer.fixmystreet.asset_type); + responsibility_on('#js-not-an-asset', this.fixmystreet.asset_item, this.fixmystreet.asset_type); } }, diff --git a/web/cobrands/northamptonshire/assets.js b/web/cobrands/northamptonshire/assets.js index e1c8e9785..166ee7453 100644 --- a/web/cobrands/northamptonshire/assets.js +++ b/web/cobrands/northamptonshire/assets.js @@ -411,7 +411,7 @@ var northants_defaults = $.extend(true, {}, fixmystreet.assets.alloy_defaults, { }, asset_not_found: function() { $("#overlapping_features_msg").addClass('hidden'); - fixmystreet.message_controller.asset_not_found(this); + fixmystreet.message_controller.asset_not_found.call(this); } } }); diff --git a/web/cobrands/westminster/assets.js b/web/cobrands/westminster/assets.js index 1c0358301..97f93a4d2 100644 --- a/web/cobrands/westminster/assets.js +++ b/web/cobrands/westminster/assets.js @@ -218,7 +218,7 @@ $.each(layer_data, function(i, o) { asset_not_found: function() { $('.category_meta_message').html('You can pick a <b class="asset-spot">' + this.fixmystreet.asset_item + '</b> from the map »'); $("#uprn_select").remove(); - fixmystreet.message_controller.asset_not_found(this); + fixmystreet.message_controller.asset_not_found.call(this); } } }; |