diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-30 22:19:43 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-30 22:19:43 -0500 |
| commit | b55b9ac18e6889605c3302d8509eca9fa7915db7 (patch) | |
| tree | baef0e545abc5696aeea3f436b128da0a3ad2fc4 | |
| parent | b3d98498a562e5ce6dccc333562ed079bcac736d (diff) | |
hide arrows on hub videos
| -rw-r--r-- | StoneIsland/www/index.html | 3 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/blogs/HubView.js | 11 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/products/ProductView.js | 9 |
3 files changed, 22 insertions, 1 deletions
diff --git a/StoneIsland/www/index.html b/StoneIsland/www/index.html index 5491d98a..5bab617f 100644 --- a/StoneIsland/www/index.html +++ b/StoneIsland/www/index.html @@ -786,7 +786,7 @@ <div class="cc_confirm"> <h3>PLEASE ENTER YOUR SECURITY CODE TO CONFIRM</h3> - <input type="number" name="Cvv" placeholder="SECURITY CODE" required> + <input type="number" name="CvvConfirm" placeholder="SECURITY CODE" required> </div> </div> @@ -799,6 +799,7 @@ </div> </div> </div> + <br><br><br><br> </form> </div> 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) { |
