From 4b6821cee2b7a35e2124a899a13c7559628f075e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 20 Nov 2015 12:01:29 -0500 Subject: loader and stuff frm last nite --- StoneIsland/www/js/lib/products/ProductView.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'StoneIsland/www/js/lib/products/ProductView.js') diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 5fe1fe7b..84889db1 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -193,13 +193,14 @@ var ProductView = ScrollableView.extend({ save: function(){ // add to cart if ( ! auth.logged_in() ) { - auth.defer_add_to_cart = { size: this.size, code: this.code } + auth.deferred_product = { size: this.size, code: this.code } } else if ( ! auth.has_cart() ) { auth.deferred_product = { size: this.size, code: this.code } auth.create_cart(auth.defer_add_to_cart) } - else { + else { + // ADD TO CART! } }, -- cgit v1.2.3-70-g09d2