diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-19 18:44:57 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-19 18:44:57 -0500 |
| commit | 39b395f28ed7eb0d24eef6b2e50a3a235af0b31e (patch) | |
| tree | 0ab7e4f99e08a4efb5bda62888bfb92312f4b5a7 /StoneIsland/www/js/lib/account/OrdersView.js | |
| parent | ee15de014ecfc780c8bd86e00eb8b24bf6149db9 (diff) | |
some js for orders view
Diffstat (limited to 'StoneIsland/www/js/lib/account/OrdersView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/account/OrdersView.js | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/account/OrdersView.js b/StoneIsland/www/js/lib/account/OrdersView.js index f269b7cf..66648b36 100644 --- a/StoneIsland/www/js/lib/account/OrdersView.js +++ b/StoneIsland/www/js/lib/account/OrdersView.js @@ -1,4 +1,27 @@ -var OrdersView = ScrollableView.extend({ +var OrdersView = View.extend({ + el: "#orders", + + events: { + "click .back": "back" + "click .details": "load_single" + }, + + initialize: function(){ + this.single = new SingleOrder () + this.list = new OrderList () + }, + + show: function(){ + document.body.className = "orders" + this.el.className = "list" + }, + + load_single: function(){ + }, + + back: function(){ + this.list.show() + }, }) |
