diff --git a/themes/default/js/product.js b/themes/default/js/product.js index 8e959b9ae..b38b63e38 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -417,14 +417,20 @@ function displayImage(domAAroundImgThumb, no_animation) { if (typeof(no_animation) == 'undefined') no_animation = false; - if (domAAroundImgThumb.attr('href')) + if (domAAroundImgThumb.prop('href')) { - var newSrc = domAAroundImgThumb.attr('href').replace('thickbox', 'large'); - if ($('#bigpic').attr('src') != newSrc) + var new_src = domAAroundImgThumb.prop('href').replace('thickbox', 'large'); + var new_title = domAAroundImgThumb.prop('title'); + var new_href = domAAroundImgThumb.prop('href'); + if ($('#bigpic').prop('src') != new_src) { - $('#bigpic').attr('src', newSrc).load(function() { + $('#bigpic').prop({ + 'src' : new_src, + 'alt' : new_title, + 'title' : new_title + }).load(function(){ if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled) - $(this).attr('rel', domAAroundImgThumb.attr('href')); + $(this).prop('rel', new_href); }); } $('#views_block li a').removeClass('shown'); diff --git a/themes/default/product.tpl b/themes/default/product.tpl index dfd32a4ae..8224f865f 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -183,7 +183,7 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving
{if $have_image} - {$product->name|escape:'htmlall':'UTF-8'} + {if !empty($cover.legend)}{$cover.legend|escape:'htmlall':'UTF-8'}{else}{$product->name|escape:'htmlall':'UTF-8'}{/if} {l s='Maximize'} {else} @@ -199,16 +199,21 @@ var fieldRequired = '{l s='Please fill in all the required fields before saving {if isset($images) && count($images) > 3}{/if}
{if isset($images) && count($images) > 3}{l s='Next'}{/if}