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.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/router.js b/www/js/router.js
index fe43d69..269f2e7 100644
--- a/www/js/router.js
+++ b/www/js/router.js
@@ -16,6 +16,7 @@
'submit-email': 'submitEmail',
'submit-name': 'submitName',
'submit-password': 'submitPassword',
+ 'save_offline': 'saveOffline',
'sent': 'sent',
'reports': 'reports'
},
@@ -90,6 +91,11 @@
this.changeView(submitPasswordView);
},
+ saveOffline: function(){
+ var saveOfflineView = new FMS.saveOfflineView({ model: FMS.currentDraft });
+ this.changeView(saveOfflineView);
+ },
+
sent: function(){
var sentView = new FMS.SentView({ model: FMS.currentDraft });
this.changeView(sentView);