summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/account/OrdersView.js
blob: 78a67e4334790f8527892c0d2c6730f6de154934 (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
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(){
    document.body.className = "orders"
    this.el.className = "list"
  },

  load_single: function(){
  },

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

})