// rework of https://github.com/PrestaShop/PrestaShop/commit/5f6d0614df4bf7d354988dd7320d012238488401#commitcomment-3108107
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);
|
||||
$('#bigpic').attr('src', newSrc).load(function() {
|
||||
$(this).show();
|
||||
if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled)
|
||||
$('#bigpic').attr('rel', domAAroundImgThumb.attr('href'));
|
||||
$(this).attr('arel', domAAroundImgThumb.attr('href'));
|
||||
});
|
||||
}
|
||||
$('#views_block li a').removeClass('shown');
|
||||
$(domAAroundImgThumb).addClass('shown');
|
||||
|
||||
Reference in New Issue
Block a user