diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-19 21:35:37 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-19 21:35:37 -0500 |
| commit | e458c052238c5f5bebd33affc7e5750671beeb23 (patch) | |
| tree | 6c827251b71fe078071a44e2cd6fa0ad4c4ab223 /StoneIsland/www/js/lib/products/ProductView.js | |
| parent | 6500cf422563eac86341a1fbc937e5554a66ee78 (diff) | |
back button
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/products/ProductView.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 75f62ac6..e21c28f1 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -23,7 +23,7 @@ var ProductView = ScrollableView.extend({ }, show: function(){ - app.footer.show("ADD TO CART", "< BACK TO SHOPPING") + app.footer.show("ADD TO CART", "BUY NOW") document.body.className = "product" }, hide: function(){ @@ -43,6 +43,12 @@ var ProductView = ScrollableView.extend({ load: function(code, data){ this.gallery.reset() this.show() + if (app.view && app.view.hide) { + app.view.hide() + } + app.view = this + app.header.set_back(true) + if (! app.collection.loaded) { this.el.className = "loading" app.collection.afterFetchCallback = this.load.bind(this, code, data) @@ -189,6 +195,10 @@ var ProductView = ScrollableView.extend({ }, cancel: function(){ + // buy now + }, + + back: function(){ app.router.go('store') }, |
