summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/account/OrdersView.js
blob: 7283b65cde2bd675593e19934ce8cd9e74955ba3 (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
var OrdersView = View.extend({

  el: "#orders",

  events: {
    "click .back": "back",
    "click .details": "load_single",
  },

  initialize: function(){
    this.single = new SingleOrder ({ parent: this })
    this.list = new OrderList ({ parent: this })
  },

  show: function(){
    if (! auth.logged_in()) { return app.router.go("intro") }
    app.footer.hide()
    document.body.className = "orders"
    this.el.className = "list"
  },

  load_single: function(){
  },

  back: function(){
    this.list.show()
  },

})