[*] FO : Wait for the image to be loaded before displaying the big image on product page - thanks to @romainberger
This commit is contained in:
@@ -422,9 +422,11 @@ function displayImage(domAAroundImgThumb, no_animation)
|
||||
var newSrc = domAAroundImgThumb.attr('href').replace('thickbox', 'large');
|
||||
if ($('#bigpic').attr('src') != newSrc)
|
||||
{
|
||||
$('#bigpic').attr('src', newSrc);
|
||||
if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled)
|
||||
$('#bigpic').attr('rel', domAAroundImgThumb.attr('href'));
|
||||
$(this).attr('src', newSrc).load(function() {
|
||||
$(this).show();
|
||||
if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled)
|
||||
$(this).attr('alt', domAAroundImgThumb.attr('href'));
|
||||
});
|
||||
}
|
||||
$('#views_block li a').removeClass('shown');
|
||||
$(domAAroundImgThumb).addClass('shown');
|
||||
|
||||
Reference in New Issue
Block a user