diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-22 16:11:12 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-22 16:11:12 -0500 |
| commit | fa9d1c62c8cc4b39caee69b1ba31401f0d4aac66 (patch) | |
| tree | be7de3febad13a0ba77aa02e19f9527df81549d1 /StoneIsland/www/js/lib/nav/NavView.js | |
| parent | 46bca0d394d4c327d692a081f9afedcf7e05c146 (diff) | |
keep user object around after login
Diffstat (limited to 'StoneIsland/www/js/lib/nav/NavView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/nav/NavView.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/nav/NavView.js b/StoneIsland/www/js/lib/nav/NavView.js index 55865abb..f6705e51 100644 --- a/StoneIsland/www/js/lib/nav/NavView.js +++ b/StoneIsland/www/js/lib/nav/NavView.js @@ -11,6 +11,7 @@ var NavView = View.extend({ "click .archive": "archive", "click .login": "login", + "click .logout": "logout", "click .account": "account", "click .faq": "faq", "click .search": "search", @@ -79,6 +80,11 @@ var NavView = View.extend({ auth.last_view = app.view app.router.go("account/login") }, + logout: function(){ + this.hide() + auth.last_view = app.view + app.router.go("account/logout") + }, account: function(){ this.el.className = "account" }, |
