diff options
author | Struan Donald <struan@exo.org.uk> | 2013-04-09 11:13:24 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-04-09 11:13:24 +0100 |
commit | 890cfcddffd1c70df10bf655d63e7b8fd162d853 (patch) | |
tree | 594caa04a48a0bef5c6e89672d4b7ec646710ca9 /www/js/router.js | |
parent | 3c9714c131708393316dc24f72bec9245902d405 (diff) |
if the user has a saved report then ask them if they want to use that
when they start the app
Diffstat (limited to 'www/js/router.js')
-rw-r--r-- | www/js/router.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/router.js b/www/js/router.js index c259c05..f220422 100644 --- a/www/js/router.js +++ b/www/js/router.js @@ -8,6 +8,7 @@ 'home': 'home', 'around': 'around', 'search': 'search', + 'existing': 'existing', 'photo': 'photo', 'details': 'details', 'submit': 'submit', @@ -42,6 +43,11 @@ this.changeView(searchView); }, + existing: function(){ + var existingView = new FMS.ExistingView({ model: FMS.currentDraft }); + this.changeView(existingView); + }, + home: function(){ var homeView = new FMS.HomeView({ model: FMS.currentDraft }); this.changeView(homeView); |