aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM Somerville <matthew-github@dracos.co.uk>2020-08-18 10:31:47 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-08-24 10:51:49 +0100
commit51252c8ad919aa7fe0f8c8fe7ac8afadb6de5b18 (patch)
treec081b47d1899e100486fb059642477354422e829
parent98c59e111bb1e8355b8eba3a10f9a5fbf2076d30 (diff)
Update relevant meta message lines on named asset.
Otherwise, if you switch category and the new asset layer is added before the old is removed, the old (still visible) layer asset found would fire but change the meta message of the new layer.
-rw-r--r--CHANGELOG.md1
-rw-r--r--web/cobrands/fixmystreet/assets.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9460a204e..17e39c6f3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,6 +29,7 @@
- Improve moderation diff display in a few small ways. #3105
- Do not have bootstrap run sudo commands. #2930
- Fix lookups in templates of categories with &s.
+ - Fix a few obscure asset layer changing issues.
- Admin improvements:
- Display user name/email for contributed as reports. #2990
- Interface for enabling anonymous reports for certain categories. #2989
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js
index 6ebb0524b..00dec0542 100644
--- a/web/cobrands/fixmystreet/assets.js
+++ b/web/cobrands/fixmystreet/assets.js
@@ -883,7 +883,7 @@ fixmystreet.assets = {
if (!message) {
message = get_asset_pick_message.call(this);
}
- $('.category_meta_message').html(message);
+ update_message_display.call(this, message);
},
named_select_action_not_found: function() {
var message = get_asset_pick_message.call(this);