aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/router.js
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2017-06-12 17:35:06 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-12-01 14:46:03 +0000
commit79e164a33e627c23269a6ae8bde5c062bd0085b6 (patch)
tree0c8c097e374cbf309ffc58962980e28db0734552 /www/js/router.js
parent1ba7efee04d47d69ffa53261ca4238e43158fa4c (diff)
Don’t animate view change if the current view is being reshown
Diffstat (limited to 'www/js/router.js')
-rw-r--r--www/js/router.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/router.js b/www/js/router.js
index c691abb..2a23708 100644
--- a/www/js/router.js
+++ b/www/js/router.js
@@ -159,7 +159,7 @@
// any transitions as they just add visual distraction to no end
// likewise displaying the offline page
var options = { changeHash: false };
- if ( !this.currentView || this.currentView.id == 'front-page' || view.id == 'offline' ) {
+ if ( !this.currentView || this.currentView.id == 'front-page' || view.id == 'offline' || view.id === this.currentView.id) {
options.transition = 'none';
}
if ( this.reverse ) {