summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/auth/LoginView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-23 01:45:53 -0500
committerJules Laplace <jules@okfoc.us>2015-11-23 01:45:53 -0500
commit7d9950316368d825510588ded16e5194b4840931 (patch)
tree294fa8647e451eae0d741cfeb88d2173b20fd940 /StoneIsland/www/js/lib/auth/LoginView.js
parent6b37f28e2dba8f191ff5df194e5215399b696faa (diff)
add to cart after signin..
Diffstat (limited to 'StoneIsland/www/js/lib/auth/LoginView.js')
-rw-r--r--StoneIsland/www/js/lib/auth/LoginView.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/auth/LoginView.js b/StoneIsland/www/js/lib/auth/LoginView.js
index b088190f..b761b5e8 100644
--- a/StoneIsland/www/js/lib/auth/LoginView.js
+++ b/StoneIsland/www/js/lib/auth/LoginView.js
@@ -37,7 +37,7 @@ var LoginView = FormView.extend({
success: function(data){
// console.log(data)
- app.account.logged_in()
+ app.account.logged_in(function(){ app.router.go("store") })
},
error: function(data){
@@ -46,7 +46,7 @@ var LoginView = FormView.extend({
},
cancel: function(){
- auth.defer_add_to_cart = null
+ auth.deferred_product = null
},
})