diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-19 19:16:15 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-19 19:21:19 -0500 |
| commit | 261857fce969790aa87498100cf353fa494080c8 (patch) | |
| tree | c5d01aaa59c0dc65ebf4fb382dfa570d3bd15c79 /StoneIsland/www/js/sdk | |
| parent | 06910c8fd4df3daa47f5cdfcbc687b1072909f52 (diff) | |
accountview
Diffstat (limited to 'StoneIsland/www/js/sdk')
| -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 = "" |
