summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products/ProductView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-20 12:01:29 -0500
committerJules Laplace <jules@okfoc.us>2015-11-20 12:01:29 -0500
commit4b6821cee2b7a35e2124a899a13c7559628f075e (patch)
tree6ea48247d64b9530d4fc5e2b02b1cf0abb5a8701 /StoneIsland/www/js/lib/products/ProductView.js
parentc270b104afaf2a529f4151daee77737ab1c56eaa (diff)
loader and stuff frm last nite
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
-rw-r--r--StoneIsland/www/js/lib/products/ProductView.js5
1 files changed, 3 insertions, 2 deletions
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!
}
},