diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-21 17:45:29 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-21 17:45:29 -0500 |
| commit | d6eea989f63e1e51563daa64873ce33166bc28c0 (patch) | |
| tree | 9431419465c7151a0927ec84970befc696581380 /StoneIsland/www/js/lib/cart/CartSummary.js | |
| parent | c223032bbd67fe5b6ad1334ce81a3f51a7631bfc (diff) | |
testin login stuff..
Diffstat (limited to 'StoneIsland/www/js/lib/cart/CartSummary.js')
| -rw-r--r-- | StoneIsland/www/js/lib/cart/CartSummary.js | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartSummary.js b/StoneIsland/www/js/lib/cart/CartSummary.js index 290627d3..268f6ee0 100644 --- a/StoneIsland/www/js/lib/cart/CartSummary.js +++ b/StoneIsland/www/js/lib/cart/CartSummary.js @@ -2,6 +2,8 @@ var CartSummary = ScrollableView.extend({ el: "#cart_summary", + template: $("#cart_summary .template").html(), + events: { }, @@ -20,7 +22,7 @@ var CartSummary = ScrollableView.extend({ sdk.cart.get_status({ success: this.populate.bind(this), - error: this.error.bind(this), + error: this.empty.bind(this), }) }, @@ -36,7 +38,7 @@ var CartSummary = ScrollableView.extend({ this.deferScrollToTop() }, - error: function(){ + empty: function(){ this.$loader.hide() app.footer.hide() this.parent.$itemcount.html("0 ITEMS") @@ -44,9 +46,22 @@ var CartSummary = ScrollableView.extend({ }, ok: function(){ + app.router.go('cart/shipping') }, cancel: function(){ + app.router.go('intro') + }, + + remove_item: function(e){ + // $( e.currentTarget ).closest(".row").remove() + sdk.cart.delete_item({ + data: { + Code10: "", + Size: "", + }, + }).done(function(){ + }) }, })
\ No newline at end of file |
