diff options
author | Struan Donald <struan@exo.org.uk> | 2013-04-24 17:18:57 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-04-24 17:28:48 +0100 |
commit | 7ff0eea0c8a535ae0375fe1ad0810436b5051ca2 (patch) | |
tree | 58c115a77e0c4c3947e74a66fd15c614d8368273 /www/js/router.js | |
parent | 66201193499c7c7359e4614a4215b190146ea3e3 (diff) |
basic login page and link from map screen
Diffstat (limited to 'www/js/router.js')
-rw-r--r-- | www/js/router.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/www/js/router.js b/www/js/router.js index 9d7e751..748ef1a 100644 --- a/www/js/router.js +++ b/www/js/router.js @@ -19,7 +19,8 @@ 'submit-password': 'submitPassword', 'save_offline': 'saveOffline', 'sent': 'sent', - 'reports': 'reports' + 'reports': 'reports', + 'login': 'login' }, initialize: function() { @@ -117,6 +118,11 @@ this.changeView(reportsView); }, + login: function() { + var loginView = new FMS.LoginView({ model: FMS.currentUser }); + this.changeView(loginView); + }, + changeView: function(view) { console.log( 'change View to ' + view.id ); $(view.el).attr('data-role', 'page'); |