From 93b3bded0286b2ec2e8b2f8210590ae7d052f09f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 11 Nov 2015 02:28:43 -0500 Subject: make footer better --- StoneIsland/www/js/lib/products/CollectionView.js | 5 +++++ StoneIsland/www/js/lib/products/ProductView.js | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js/lib/products') diff --git a/StoneIsland/www/js/lib/products/CollectionView.js b/StoneIsland/www/js/lib/products/CollectionView.js index 490b10fe..dbece93b 100644 --- a/StoneIsland/www/js/lib/products/CollectionView.js +++ b/StoneIsland/www/js/lib/products/CollectionView.js @@ -23,6 +23,7 @@ var CollectionView = ScrollableView.extend({ }, show: function(){ + app.footer.show("FILTER") document.body.className = "collection" if (this.loaded) { return this.populate(this.data) @@ -30,6 +31,10 @@ var CollectionView = ScrollableView.extend({ this.fetch() }, + ok: function(){ + // this.filter() + }, + fetch: function(){ if (this.loaded) return this.$loader.show() diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 9bfbe4a2..fd81f199 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -20,6 +20,8 @@ var ProductView = ScrollableView.extend({ this.$size = this.$(".size") this.$color = this.$(".color") this.$body = this.$(".body") + + app.footer.show("< BACK TO SHOPPING", "ADD TO CART") }, show: function(){ @@ -132,7 +134,12 @@ var ProductView = ScrollableView.extend({ this.$color.html(color.label) }.bind(this)) }, - + + ok: function(){ + }, + cancel: function(){ + app.router.go('store') + }, share: function(){ }, -- cgit v1.2.3-70-g09d2