summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products/ProductView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-30 22:19:43 -0500
committerJules Laplace <jules@okfoc.us>2015-11-30 22:19:43 -0500
commitb55b9ac18e6889605c3302d8509eca9fa7915db7 (patch)
treebaef0e545abc5696aeea3f436b128da0a3ad2fc4 /StoneIsland/www/js/lib/products/ProductView.js
parentb3d98498a562e5ce6dccc333562ed079bcac736d (diff)
hide arrows on hub videos
Diffstat (limited to 'StoneIsland/www/js/lib/products/ProductView.js')
-rw-r--r--StoneIsland/www/js/lib/products/ProductView.js9
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) {