From 7d9950316368d825510588ded16e5194b4840931 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 23 Nov 2015 01:45:53 -0500 Subject: add to cart after signin.. --- StoneIsland/www/js/lib/auth/SignupView.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'StoneIsland/www/js/lib/auth/SignupView.js') diff --git a/StoneIsland/www/js/lib/auth/SignupView.js b/StoneIsland/www/js/lib/auth/SignupView.js index 3293b3aa..fe0e28db 100644 --- a/StoneIsland/www/js/lib/auth/SignupView.js +++ b/StoneIsland/www/js/lib/auth/SignupView.js @@ -86,7 +86,7 @@ var SignupView = FormView.extend({ auth.user.name = this.last_data.Name auth.user.surname = this.last_data.Surname auth.user.email = this.last_data.Email - app.account.logged_in() + app.account.logged_in(function(){ app.router.go("store") }) }, error: function(data){ @@ -97,15 +97,4 @@ var SignupView = FormView.extend({ auth.deferred_product = null }, -/* - var new_user_data = { - "Email": "testit.account" + Math.floor(Math.random() * 10000000) + "@yoox.com", - "Password": "TestPassword", - "Gender": "M", - "Name": "TestName", - "Surname": "TestSurname", - "DataProfiling": true, - } -*/ - }) \ No newline at end of file -- cgit v1.2.3-70-g09d2