summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib
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
parentb3d98498a562e5ce6dccc333562ed079bcac736d (diff)
hide arrows on hub videos
Diffstat (limited to 'StoneIsland/www/js/lib')
-rw-r--r--StoneIsland/www/js/lib/blogs/HubView.js11
-rw-r--r--StoneIsland/www/js/lib/products/ProductView.js9
2 files changed, 20 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/blogs/HubView.js b/StoneIsland/www/js/lib/blogs/HubView.js
index 3b2900ad..a6ae958e 100644
--- a/StoneIsland/www/js/lib/blogs/HubView.js
+++ b/StoneIsland/www/js/lib/blogs/HubView.js
@@ -5,6 +5,8 @@ var HubView = ScrollableView.extend({
events: {
"click .store": "store_link",
+ "click .gallery-left": "gallery_left",
+ "click .gallery-right": "gallery_right",
},
initialize: function(){
@@ -73,6 +75,8 @@ var HubView = ScrollableView.extend({
play.className = "play"
$(".gallery-" + row.id).append(play)
}
+ $t.find("gallery-left").remove()
+ $t.find("gallery-right").remove()
}
}.bind(this))
@@ -83,5 +87,12 @@ var HubView = ScrollableView.extend({
store_link: function(){
app.router.go("store")
},
+
+ gallery_prev: function(e){
+ $(e.currentTarget).closest("hub_item").flickity('prev')
+ },
+ gallery_next: function(e){
+ $(e.currentTarget).closest("hub_item").flickity('next')
+ },
}) \ No newline at end of file
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) {