summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/cart/CartView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-21 15:57:50 -0500
committerJules Laplace <jules@okfoc.us>2015-11-21 15:57:50 -0500
commitc223032bbd67fe5b6ad1334ce81a3f51a7631bfc (patch)
tree9f832d23e348a3b92030ec7da6053d7eece24254 /StoneIsland/www/js/lib/cart/CartView.js
parent29380aa560c05186aa67b7b36d4a40c65e570d35 (diff)
cart empty warning
Diffstat (limited to 'StoneIsland/www/js/lib/cart/CartView.js')
-rw-r--r--StoneIsland/www/js/lib/cart/CartView.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartView.js b/StoneIsland/www/js/lib/cart/CartView.js
index 43dc7dd4..fdad3a07 100644
--- a/StoneIsland/www/js/lib/cart/CartView.js
+++ b/StoneIsland/www/js/lib/cart/CartView.js
@@ -3,17 +3,19 @@ var CartView = View.extend({
el: "#cart",
events: {
- "click .summary": "show_summary",
- "click .shipping": "show_shipping",
- "click .payment": "show_payment",
+ "click .summary_step": "show_summary",
+ "click .shipping_step": "show_shipping",
+ "click .payment_step": "show_payment",
},
initialize: function(){
- this.summary = new CartSummary ()
- this.payment = new CartPayment ()
- this.shipping = new CartShipping ()
- this.confirm = new CartConfirm ()
- this.thanks = new CartThanks ()
+ this.summary = new CartSummary ({ parent: this })
+ this.payment = new CartPayment ({ parent: this })
+ this.shipping = new CartShipping ({ parent: this })
+ this.confirm = new CartConfirm ({ parent: this })
+ this.thanks = new CartThanks ({ parent: this })
+
+ this.$itemcount = this.$(".itemcount")
},
show: function(){