summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products/GalleryView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-05 19:18:49 -0500
committerJules Laplace <jules@okfoc.us>2015-11-05 19:18:49 -0500
commitcc657e52cc793cb193df9c8f8ef9efadd6d7e819 (patch)
treef50ccc584d304eae26d1a31fee4043dea61e2372 /StoneIsland/www/js/lib/products/GalleryView.js
parentde7d43f46a2430c7b2d8de70d4907e0afed34779 (diff)
loader on product view
Diffstat (limited to 'StoneIsland/www/js/lib/products/GalleryView.js')
-rw-r--r--StoneIsland/www/js/lib/products/GalleryView.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/products/GalleryView.js b/StoneIsland/www/js/lib/products/GalleryView.js
index a139c454..ea4637eb 100644
--- a/StoneIsland/www/js/lib/products/GalleryView.js
+++ b/StoneIsland/www/js/lib/products/GalleryView.js
@@ -15,6 +15,11 @@ var GalleryView = View.extend({
this.$(".template").remove()
},
+ reset: function(){
+ this.gallery && this.gallery.destroy()
+ this.$el.empty()
+ },
+
populate: function(code, image_ids){
var valid_styles = {}
image_ids.forEach(function(id){