diff options
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" }, |
