diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-18 21:35:25 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-18 21:35:25 -0500 |
| commit | 148b087a2f8c8972d18fd0a3aceb0d4f82f6741f (patch) | |
| tree | fc9570aa7de61e520f38cea64d57ce625af3f528 /StoneIsland/www/js/lib/nav/NavView.js | |
| parent | a8d09a3420a94531d465057339a3e5b42a05c761 (diff) | |
rewrite faqview into pageview
Diffstat (limited to 'StoneIsland/www/js/lib/nav/NavView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/nav/NavView.js | 45 |
1 files changed, 34 insertions, 11 deletions
diff --git a/StoneIsland/www/js/lib/nav/NavView.js b/StoneIsland/www/js/lib/nav/NavView.js index 9019275f..a9129650 100644 --- a/StoneIsland/www/js/lib/nav/NavView.js +++ b/StoneIsland/www/js/lib/nav/NavView.js @@ -18,13 +18,19 @@ var NavView = View.extend({ "click .shipping": "shipping", "click .settings": "settings", + "click .faq_back": "faq_back", + "click .privacy": "privacy", + "click .returns": "returns", + "click .terms": "terms", + "click .care": "care", + "click .fb": "fb", "click .insta": "insta", "click .tw": "tw", }, - initialize: function(){ - }, + initialize: function(){ + }, show: function(){ $("body").addClass("nav") @@ -62,7 +68,9 @@ var NavView = View.extend({ app.router.go("account/login") } }, - + account_back: function(){ + this.$el.removeClass("account") + }, profile: function(){ this.hide() @@ -81,18 +89,33 @@ var NavView = View.extend({ app.router.go("account/settings") }, - - account_back: function(){ - this.$el.removeClass("account") + faq: function(){ + this.$el.addClass("faq") }, - - search: function(){ + faq_back: function(){ + this.$el.removeClass("faq") + }, + privacy: function(){ this.hide() - app.router.go("search") + app.router.go("page/privacy") }, - faq: function(){ + returns: function(){ + this.hide() + app.router.go("page/returns") + }, + terms: function(){ + this.hide() + app.router.go("page/terms") + }, + care: function(){ this.hide() - app.router.go("faq") + app.router.go("page/care") + }, + + + search: function(){ + this.hide() + app.router.go("search") }, |
