From 7afdb08a56b6249b3fed1c81b8226c1420aa8b69 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Mon, 29 Apr 2013 17:03:41 +0200 Subject: [PATCH] // revert from commit 5f6d0614df4bf7d354988dd7320d012238488401 --- themes/default/js/product.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/themes/default/js/product.js b/themes/default/js/product.js index 9ff798a8f..ad0069483 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -422,11 +422,9 @@ function displayImage(domAAroundImgThumb, no_animation) var newSrc = domAAroundImgThumb.attr('href').replace('thickbox', 'large'); if ($('#bigpic').attr('src') != newSrc) { - $(this).attr('src', newSrc).load(function() { - $(this).show(); - if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled) - $(this).attr('alt', domAAroundImgThumb.attr('href')); - }); + $('#bigpic').attr('src', newSrc); + if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled) + $('#bigpic').attr('rel', domAAroundImgThumb.attr('href')); } $('#views_block li a').removeClass('shown'); $(domAAroundImgThumb).addClass('shown');