aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-07 17:19:01 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-07 17:19:01 +0100
commit1821af6398de04bb7b5cd38cf27cca6ba9d881b9 (patch)
tree7b02d21eb82daf4c2c094c6c6bc9fe67f2538052
parente46f9bc38a89c69f95592bf0e2fc38b67c9a96ce (diff)
don't use a transition for the offline page
as you only every get to this page from the map it looks weird to transition to the map page and then almost immediately do another transition to the offline page so don't bother
-rw-r--r--src/js/router.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/router.js b/src/js/router.js
index 118955e..7398b00 100644
--- a/src/js/router.js
+++ b/src/js/router.js
@@ -157,8 +157,9 @@
// if we are coming from the front page then we don't want to do
// 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' ) {
+ if ( !this.currentView || this.currentView.id == 'front-page' || view.id == 'offline' ) {
options.transition = 'none';
}
if ( this.reverse ) {