summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/account/AccountView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/account/AccountView.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/account/AccountView.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/AccountView.js b/StoneIsland/platforms/ios/www/js/lib/account/AccountView.js
index 80738be0..73637cd1 100755
--- a/StoneIsland/platforms/ios/www/js/lib/account/AccountView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/account/AccountView.js
@@ -103,13 +103,18 @@ var AccountView = View.extend({
else {
cb && cb()
}
+ console.log('logged in')
if ( ! auth.has_cart() ) {
+ console.log('no cart')
app.curtain.show("loading")
auth.create_cart({
success: function(){
+ console.log('got cart')
if (auth.deferred_product) {
+ console.log('adding deferred product')
auth.add_deferred_product_to_cart({
success: function(){
+ console.log('success!')
app.router.go("cart")
setTimeout(function(){
app.curtain.hide("loading")