diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-12-01 06:18:02 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-12-01 06:18:02 -0500 |
| commit | 44ba111c40ce50f8634a7e9bb4316315274218cb (patch) | |
| tree | 2575c846b8e5290b5a3aca7d6c143a545b92f269 /StoneIsland/www/js/lib/products | |
| parent | 5e257befde4a275ef807402b9e7e05264bf3ccc9 (diff) | |
fix gallery arrows
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){ |
