diff options
Diffstat (limited to 'StoneIsland/www/js/lib/auth')
| -rw-r--r-- | StoneIsland/www/js/lib/auth/LoginView.js | 5 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/auth/LogoutView.js | 3 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/auth/SignupView.js | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/auth/LoginView.js b/StoneIsland/www/js/lib/auth/LoginView.js index 8c875ae8..c4ec8870 100644 --- a/StoneIsland/www/js/lib/auth/LoginView.js +++ b/StoneIsland/www/js/lib/auth/LoginView.js @@ -32,9 +32,14 @@ var LoginView = FormView.extend({ }, success: function(data){ + app.account.logged_in() }, error: function(data){ }, + + cancel: function(){ + auth.defer_add_to_cart = null + }, }) diff --git a/StoneIsland/www/js/lib/auth/LogoutView.js b/StoneIsland/www/js/lib/auth/LogoutView.js index 62c925eb..feb264dd 100644 --- a/StoneIsland/www/js/lib/auth/LogoutView.js +++ b/StoneIsland/www/js/lib/auth/LogoutView.js @@ -8,6 +8,7 @@ var LogoutView = View.extend({ show: function(){ document.body.className = "logout" app.footer.hide() + app.account.log_out() }, - + })
\ No newline at end of file diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js index 28d828c3..092bf297 100644 --- a/StoneIsland/www/js/lib/auth/SignupView.js +++ b/StoneIsland/www/js/lib/auth/SignupView.js @@ -46,6 +46,10 @@ var SignupView = FormView.extend({ error: function(data){ }, + cancel: function(){ + auth.defer_add_to_cart = null + }, + /* var new_user_data = { "Email": "testit.account" + Math.floor(Math.random() * 10000000) + "@yoox.com", |
