Testingshopping/prestashop/themes/default-bootstrap/js/product.js
//update display of the large image
update display of the large image
update display of the large image
function displayImage(domAAroundImgThumb, no_animation)
{
	if (typeof(no_animation) == 'undefined')
		no_animation = false;
	if (domAAroundImgThumb.attr('href'))
	{
		var new_src = domAAroundImgThumb.attr('href').replace('thickbox', 'large');
		var new_title = domAAroundImgThumb.attr('title');
		var new_href = domAAroundImgThumb.attr('href');
		if ($('#bigpic').attr('src') != new_src)
		{
			$('#bigpic').attr({
				'src' : new_src,
				'alt' : new_title,
				'title' : new_title
			}).load(function(){
				if (typeof(jqZoomEnabled) !== 'undefined' && jqZoomEnabled)
					$(this).attr('rel', new_href);
			});
		}
		$('#views_block li a').removeClass('shown');
		$(domAAroundImgThumb).addClass('shown');
	}
}
function displayImage ( domAAroundImgThumb , no_animation ) { if ( typeof ( no_animation ) == 'undefined' ) no_animation = false ; if ( domAAroundImgThumb . attr ( 'href' ) ) { var new_src = domAAroundImgThumb . attr ( 'href' ) . replace ( 'thickbox' , 'large' ) ; var new_title = domAAroundImgThumb . attr ( 'title' ) ; var new_href = domAAroundImgThumb . attr ( 'href' ) ; if ( $ ( '#bigpic' ) . attr ( 'src' ) != new_src ) { $ ( '#bigpic' ) . attr ( { 'src' : new_src , 'alt' : new_title , 'title' : new_title } ) . load ( function ( ) { if ( typeof ( jqZoomEnabled ) !== 'undefined' && jqZoomEnabled ) $ ( this ) . attr ( 'rel' , new_href ) ; } ) ; } $ ( '#views_block li a' ) . removeClass ( 'shown' ) ; $ ( domAAroundImgThumb ) . addClass ( 'shown' ) ; } }
update display of the large image
update display of the large image