diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-11 02:28:43 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-11 02:28:43 -0500 |
| commit | 93b3bded0286b2ec2e8b2f8210590ae7d052f09f (patch) | |
| tree | 967b61a08cae3efe34b2e2eab801d5ea13780238 /StoneIsland/www/js/lib/cart/CartView.js | |
| parent | 1d0bff6384549b05927690e60c8bf708eda834bf (diff) | |
make footer better
Diffstat (limited to 'StoneIsland/www/js/lib/cart/CartView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/cart/CartView.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartView.js b/StoneIsland/www/js/lib/cart/CartView.js index 0292068d..7744ad9d 100644 --- a/StoneIsland/www/js/lib/cart/CartView.js +++ b/StoneIsland/www/js/lib/cart/CartView.js @@ -3,6 +3,9 @@ var CartView = View.extend({ el: "#cart", events: { + "click .summary": "show_summary", + "click .shipping": "show_shipping", + "click .payment": "show_payment", }, initialize: function(){ @@ -10,10 +13,24 @@ var CartView = View.extend({ this.payment = new CartPayment () this.shipping = new CartShipping () this.confirm = new CartConfirm () + this.thanks = new CartThanks () }, show: function(){ document.body.className = "cart" + this.show_summary() + }, + + show_summary: function(){ + this.el.className = "summary" + }, + + show_shipping: function(){ + this.el.className = "shipping" + }, + + show_payment: function(){ + this.el.className = "payment" }, })
\ No newline at end of file |
