diff options
Diffstat (limited to 'StoneIsland/www/js/lib/products')
| -rw-r--r-- | StoneIsland/www/js/lib/products/GalleryView.js | 8 | ||||
| -rw-r--r-- | StoneIsland/www/js/lib/products/ProductView.js | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/StoneIsland/www/js/lib/products/GalleryView.js b/StoneIsland/www/js/lib/products/GalleryView.js index b36c5df2..02193f14 100644 --- a/StoneIsland/www/js/lib/products/GalleryView.js +++ b/StoneIsland/www/js/lib/products/GalleryView.js @@ -4,8 +4,8 @@ var GalleryView = View.extend({ template: $("#gallery .template").html(), events: { - "click .left": "prev", - "click .right": "next", +// "click .left": "prev", +// "click .right": "next", // "touchstart .gallery": "touchstart", // "touchmove .gallery": "touchmove", // "touchend .gallery": "touchend", @@ -51,10 +51,6 @@ var GalleryView = View.extend({ }) }, - prev: function(){ - }, - next: function(){ - }, touchstart: function(e){ }, touchmove: function(e){ diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js index 5b7ee6d2..4789850a 100644 --- a/StoneIsland/www/js/lib/products/ProductView.js +++ b/StoneIsland/www/js/lib/products/ProductView.js @@ -47,10 +47,10 @@ var ProductView = ScrollableView.extend({ cache: {}, gallery_prev: function(){ - this.gallery.gallery.flickity('prev') + app.product.gallery.gallery.previous() }, gallery_right: function(){ - this.gallery.gallery.flickity('next') + app.product.gallery.gallery.next() }, find: function(code, cb){ |
