Fix clear image reset

This commit is contained in:
Mike Jolley 2013-02-19 11:03:14 +00:00
parent ac0a4494e0
commit 038eceffc8
2 changed files with 10 additions and 4 deletions

View File

@ -200,13 +200,19 @@
var o_title = $product_img.attr('data-o_title');
var o_href = $product_link.attr('data-o_href');
if ( o_src && o_href && o_title ) {
if ( o_src ) {
$product_img
.attr( 'src', o_src );
}
if ( o_href ) {
$product_link
.attr( 'href', o_href );
}
if ( o_title ) {
$product_img
.attr( 'src', o_src )
.attr( 'alt', o_title )
.attr( 'title', o_title );
$product_link
.attr( 'href', o_href )
.attr( 'title', o_title );
}

File diff suppressed because one or more lines are too long