diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/router.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/www/js/router.js b/www/js/router.js index 269f2e7..b7b9539 100644 --- a/www/js/router.js +++ b/www/js/router.js @@ -114,7 +114,15 @@ } view.render(); $('body').append($(view.el)); - $.mobile.changePage($(view.el), { changeHash: false }); + + // 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 + var options = { changeHash: false }; + if ( !this.currentView || this.currentView.id == 'front-page' ) { + options.transition = 'none'; + } + + $.mobile.changePage($(view.el), options); console.log('changed View to ' + view.id); this.currentView = view; |