aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/router.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/router.js')
-rw-r--r--www/js/router.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/www/js/router.js b/www/js/router.js
index 0832599..f14c279 100644
--- a/www/js/router.js
+++ b/www/js/router.js
@@ -2,6 +2,7 @@
_.extend(FMS, {
appRouter: Backbone.Router.extend({
currentView: null,
+ reverse: false,
routes: {
'': 'home',
@@ -38,6 +39,10 @@
}
},
+ reverseTransition: function() {
+ this.reverse = true;
+ },
+
around: function(){
var aroundView = new FMS.AroundView({ model: FMS.currentDraft });
this.changeView(aroundView);
@@ -138,6 +143,10 @@
if ( !this.currentView || this.currentView.id == 'front-page' ) {
options.transition = 'none';
}
+ if ( this.reverse ) {
+ options.reverse = true;
+ }
+ this.reverse = false;
$.mobile.changePage($(view.el), options);