aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js6
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f135fb91f..057506c4a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -60,6 +60,7 @@
- Checking of cached front page details against database. #2696
- Inconsistent display of mark private checkbox for staff users
- Clear user categories when staff access is removed. #2815
+ - Only trigger one change event on initial popstate.
- Development improvements:
- Upgrade the underlying framework and a number of other packages. #2473
- Add feature cobrand helper function.
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 1a513a1a5..f1e3a1a34 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -1716,9 +1716,9 @@ $(function() {
// location.href is something like foo.com/around?pc=abc-123,
// which we pass into fixmystreet.display.reports_list() as a fallback
// in case the list isn't already in the DOM.
- $('#filter_categories').add('#statuses').add('#sort').find('option')
- .prop('selected', function() { return this.defaultSelected; })
- .trigger('change.multiselect');
+ var filters = $('#filter_categories').add('#statuses').add('#sort');
+ filters.find('option').prop('selected', function() { return this.defaultSelected; });
+ filters.trigger('change.multiselect');
if (fixmystreet.utils && fixmystreet.utils.parse_query_string) {
var qs = fixmystreet.utils.parse_query_string();
var page = qs.p || 1;