diff options
Diffstat (limited to 'StoneIsland/www/js/lib/cart/CartView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/cart/CartView.js | 18 |
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(){ |
