diff options
Diffstat (limited to 'StoneIsland/www/js/lib')
| -rw-r--r-- | StoneIsland/www/js/lib/_router.js | 2 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/products/ProductView.js | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js index bf4af40b..47f0ec26 100644 --- a/StoneIsland/www/js/lib/_router.js +++ b/StoneIsland/www/js/lib/_router.js @@ -53,7 +53,7 @@ var SiteRouter = Router.extend({ default_view: function(name){ var fn = function(){ console.log(name) - if (name.match(".")) { + if (name.match(/\./)) { var n = name.split(".") console.log(name, n) app.view = app[n[0]][n[1]] diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index fd81f199..8e14c193 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -21,7 +21,7 @@ var ProductView = ScrollableView.extend({ this.$color = this.$(".color") this.$body = this.$(".body") - app.footer.show("< BACK TO SHOPPING", "ADD TO CART") + app.footer.show("ADD TO CART", "< BACK TO SHOPPING") }, show: function(){ @@ -135,11 +135,14 @@ var ProductView = ScrollableView.extend({ }.bind(this)) }, - ok: function(){ + save: function(){ + // add to cart }, + cancel: function(){ app.router.go('store') }, + share: function(){ }, |
