gRoussac committed 2013-04-29 17:12:17 +02:00
1 parent 7afdb08a56
commit 140b9b2bba
1 file changed
+4 -2
+4 -2
View File
@@ -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); $('#bigpic').attr('src', newSrc).load(function() {
$(this).show();
if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled) if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled)
$('#bigpic').attr('rel', domAAroundImgThumb.attr('href')); $(this).attr('arel', domAAroundImgThumb.attr('href'));
});
} }
$('#views_block li a').removeClass('shown'); $('#views_block li a').removeClass('shown');
$(domAAroundImgThumb).addClass('shown'); $(domAAroundImgThumb).addClass('shown');