aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2018-06-15 14:52:25 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-07-03 11:55:53 +0100
commitdf2e6c6fd66c46ac0b00a38c5aa00d056bbde4d1 (patch)
treec07a060bb7254636ba01c1f2182bc3b643eedf08 /web
parent419ed059989e7c0718de0dda436f1928200b6518 (diff)
fix pushState back from report -> report list
When moving back through pushState history from a report page to a list of reports the list of reports wasn't being displayed because code to redisplay it wasn't called.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 137fe5db7..6caea3f4c 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -1291,6 +1291,9 @@ $(function() {
} else if ('page_change' in e.state) {
$('.pagination').data('page', e.state.page_change.page)
.trigger('change.filters');
+ if ( fixmystreet.page != 'reports' ) {
+ fixmystreet.display.reports_list(location.href);
+ }
} else if ('filter_change' in e.state) {
$('#filter_categories').val(e.state.filter_change.filter_categories);
$('#statuses').val(e.state.filter_change.statuses);