From cc657e52cc793cb193df9c8f8ef9efadd6d7e819 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 5 Nov 2015 19:18:49 -0500 Subject: loader on product view --- StoneIsland/www/js/lib/products/GalleryView.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'StoneIsland/www/js/lib/products/GalleryView.js') 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){ -- cgit v1.2.3-70-g09d2