From 0805b9a105f6cb12ffb23349e1458d13ffd90d4f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 19 Nov 2015 23:17:05 -0500 Subject: dates and some cart auth --- StoneIsland/www/js/lib/auth/LoginView.js | 5 +++++ StoneIsland/www/js/lib/auth/LogoutView.js | 3 ++- StoneIsland/www/js/lib/auth/SignupView.js | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js/lib/auth') 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", -- cgit v1.2.3-70-g09d2