summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/cart/CartConfirm.js
blob: 8a6b3c0efeb7966fb5b5bb75d6667e337da21a91 (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
29
30
31
32
33
34
var CartConfirm = FormView.extend({
  
  el: "#cart_confirm",
  
  events: {
  },
  
  initialize: function(opt){
    this.parent = opt.parent
    this.scroller = new IScroll('#cart_confirm', app.iscroll_options)
  },
  
  show: function(){
    document.body.className = "cart"
    app.cart.el.className = "confirm"
    app.footer.show("PLACE ORDER", "CANCEL")
    window.location.hash = "#/cart/confirm"
    this.deferScrollToTop()

    app.curtain.show("loading")
    promise(sdk.cart.get_status).then( this.populate.bind(this) )
  },

  populate: function(){
    app.curtain.hide("loading")
  },

  save: function(){
  },
  
  cancel: function(){
  },

})