summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/cart/CartThanks.js
blob: 03a45d4d2e708928738cbdff5d291d2e470ca4b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var CartThanks = View.extend({
  
  el: "#cart_thanks",
  
  events: {
  },
  
  initialize: function(opt){
    this.parent = opt.parent
  },
  
  show: function(){
    document.body.className = "cart"
    app.cart.el.className = "thanks"
    app.header.set_cart_count(0)
    app.footer.show("< BACK TO COLLECTION")
    app.footer.hide()
        
    app.orders.loaded = false
    
    sdk.auth.clear_cart()
  },
  
  ok: function(){
    app.router.go("store")
  },

})