diff options
| author | Rene Ae <aehtyb@gmail.com> | 2015-11-30 21:41:40 -0600 |
|---|---|---|
| committer | Rene Ae <aehtyb@gmail.com> | 2015-11-30 21:41:40 -0600 |
| commit | 85201002dc9b736e772c627a09f74cdc61eb2b19 (patch) | |
| tree | 0a47d7ca252a432c4ce74bd4a055956d0eb8e122 /StoneIsland/www/js/lib/products/ProductView.js | |
| parent | 8b173b5ddc0b8d0bd4169bb7f8a4eabe650b664f (diff) | |
| parent | b5a159707f00828235e81c04061e8851f033bdf2 (diff) | |
Merge branch 'master' of https://github.com/okfocus/stone-island
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
| -rw-r--r-- | StoneIsland/www/js/lib/products/ProductView.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 18a8af52..92a0e0f7 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -8,6 +8,8 @@ var ProductView = ScrollableView.extend({ "click .size": "select_size", "click .color": "select_color", "click .share": "share", + "click .gallery-left": "gallery_left", + "click .gallery-right": "gallery_right", }, initialize: function(){ @@ -44,6 +46,13 @@ var ProductView = ScrollableView.extend({ cache: {}, + gallery_prev: function(){ + this.gallery.gallery.flickity('prev') + }, + gallery_right: function(){ + this.gallery.gallery.flickity('next') + }, + find: function(code, cb){ data = app.collection.items[code] || {} if (code in this.cache) { |
