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.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/www/js/router.js b/www/js/router.js
index 60901bf..f241184 100644
--- a/www/js/router.js
+++ b/www/js/router.js
@@ -9,7 +9,8 @@
'around': 'around',
'photo': 'photo',
'details': 'details',
- 'submit': 'submit'
+ 'submit': 'submit',
+ 'sent': 'sent'
},
initialize: function() {
@@ -46,6 +47,11 @@
this.changeView(submitView);
},
+ sent: function(){
+ var sentView = new FMS.SentView({ model: FMS.currentReport });
+ this.changeView(sentView);
+ },
+
changeView: function(view) {
console.log( 'change View to ' + view.id );
$(view.el).attr('data-role', 'page');