summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/nav/NavView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/nav/NavView.js')
-rw-r--r--StoneIsland/www/js/lib/nav/NavView.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/nav/NavView.js b/StoneIsland/www/js/lib/nav/NavView.js
index 3949c3c5..9f82bf08 100644
--- a/StoneIsland/www/js/lib/nav/NavView.js
+++ b/StoneIsland/www/js/lib/nav/NavView.js
@@ -49,7 +49,12 @@ var NavView = View.extend({
login: function(){
this.hide()
- app.router.go("login")
+ if (auth.logged_in()) {
+ this.$el.addClass("account")
+ }
+ else {
+ app.router.go("account/login")
+ }
},
search: function(){
@@ -70,6 +75,5 @@ var NavView = View.extend({
tw: function(){
window.open("https://twitter.com/stoneisland", '_system')
},
-
})