summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/sdk
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-19 19:16:15 -0500
committerJules Laplace <jules@okfoc.us>2015-11-19 19:21:19 -0500
commit261857fce969790aa87498100cf353fa494080c8 (patch)
treec5d01aaa59c0dc65ebf4fb382dfa570d3bd15c79 /StoneIsland/www/js/sdk
parent06910c8fd4df3daa47f5cdfcbc687b1072909f52 (diff)
accountview
Diffstat (limited to 'StoneIsland/www/js/sdk')
-rw-r--r--StoneIsland/www/js/sdk/auth.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/StoneIsland/www/js/sdk/auth.js b/StoneIsland/www/js/sdk/auth.js
index 572823c3..548e67f4 100644
--- a/StoneIsland/www/js/sdk/auth.js
+++ b/StoneIsland/www/js/sdk/auth.js
@@ -24,12 +24,8 @@ var auth = sdk.auth = (function(){
auth.get_user(function(){
if (auth.logged_in()) {
auth.get_cart()
- auth.view_logged_in()
}
- else {
- auth.view_logged_out()
- }
- fn && fn()
+ fn && fn( auth.logged_in() )
})
}
@@ -57,15 +53,6 @@ var auth = sdk.auth = (function(){
cart.id = localStorage.getItem("yoox.cart_id") || -1
cb && cb()
}
-
- auth.view_logged_in = function(){
- $("#nav .login").hide()
- $("#nav .account, #nav .logout").show()
- }
- auth.view_logged_out = function(){
- $("#nav .login").show()
- $("#nav .account, #nav .logout").hide()
- }
auth.log_out = function(){
auth.access_token = ""