app/assets/javascripts/caboose/product.js in caboose-cms-0.6.22 vs app/assets/javascripts/caboose/product.js in caboose-cms-0.6.23
- old
+ new
@@ -52,11 +52,14 @@
};
self.initalize_zoom = function(image_url) {
var big_image = $("#product-images").children("figure").first();
big_image.data("zoom-image",image_url);
- if (typeof elevateZoom !== 'undefined') {
+ try {
big_image.elevateZoom();
+ }
+ catch(err) {
+ console.log("Missing image zoom script.");
}
}
self.render_images = function(callback) {
self.$images = $('#product-images', self.$product);