diff options
Diffstat (limited to 'StoneIsland/www/js/sdk/auth.js')
| -rw-r--r-- | StoneIsland/www/js/sdk/auth.js | 15 |
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 = "" |
