summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-19 18:20:33 -0500
committerJules Laplace <jules@okfoc.us>2015-11-19 18:20:33 -0500
commitee15de014ecfc780c8bd86e00eb8b24bf6149db9 (patch)
tree54b7f3887655abfdb8f6bdcb788a57d081aefda0 /StoneIsland/www/js/lib
parent4a0eedbd2d71249ce427f9f302b83b0073bfe8cd (diff)
stub in ordersview
Diffstat (limited to 'StoneIsland/www/js/lib')
-rw-r--r--StoneIsland/www/js/lib/_router.js1
-rw-r--r--StoneIsland/www/js/lib/account/OrdersView.js4
-rw-r--r--StoneIsland/www/js/lib/nav/NavView.js10
3 files changed, 15 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js
index 20ef2ce1..80ea9c39 100644
--- a/StoneIsland/www/js/lib/_router.js
+++ b/StoneIsland/www/js/lib/_router.js
@@ -19,6 +19,7 @@ var SiteRouter = Router.extend({
'/account/profile': 'profile',
'/account/payment': 'payment',
'/account/shipping': 'shipping',
+ '/account/orders': 'orders',
'/account/settings': 'settings',
'/page/terms': 'terms',
diff --git a/StoneIsland/www/js/lib/account/OrdersView.js b/StoneIsland/www/js/lib/account/OrdersView.js
new file mode 100644
index 00000000..f269b7cf
--- /dev/null
+++ b/StoneIsland/www/js/lib/account/OrdersView.js
@@ -0,0 +1,4 @@
+var OrdersView = ScrollableView.extend({
+
+
+})
diff --git a/StoneIsland/www/js/lib/nav/NavView.js b/StoneIsland/www/js/lib/nav/NavView.js
index 2145c163..1a519de7 100644
--- a/StoneIsland/www/js/lib/nav/NavView.js
+++ b/StoneIsland/www/js/lib/nav/NavView.js
@@ -19,6 +19,8 @@ var NavView = View.extend({
"click .payment": "payment",
"click .shipping": "shipping",
"click .settings": "settings",
+ "click .orders": "orders",
+ "click .return_link": "return_link",
"click .faq_back": "back",
"click .privacy": "privacy",
@@ -96,10 +98,18 @@ var NavView = View.extend({
this.hide()
app.router.go("account/shipping")
},
+ orders: function(){
+ this.hide()
+ app.router.go("account/orders")
+ },
settings: function(){
this.hide()
app.router.go("account/settings")
},
+ return_link: function(){
+ window.open("http://www.stoneisland.com/", '_system')
+ },
+
faq: function(){
this.el.className = "faq"