[*] 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');
|
var newSrc = domAAroundImgThumb.attr('href').replace('thickbox', 'large');
|
||||||
if ($('#bigpic').attr('src') != newSrc)
|
if ($('#bigpic').attr('src') != newSrc)
|
||||||
{
|
{
|
||||||
$('#bigpic').attr('src', newSrc);
|
$(this).attr('src', newSrc).load(function() {
|
||||||
if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled)
|
$(this).show();
|
||||||
$('#bigpic').attr('rel', domAAroundImgThumb.attr('href'));
|
if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled)
|
||||||
|
$(this).attr('alt', domAAroundImgThumb.attr('href'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
$('#views_block li a').removeClass('shown');
|
$('#views_block li a').removeClass('shown');
|
||||||
$(domAAroundImgThumb).addClass('shown');
|
$(domAAroundImgThumb).addClass('shown');
|
||||||
|
|||||||
Reference in New Issue
Block a user