From a0bf4a30b9f1c748a36876980580b68db0a2c6b3 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Wed, 12 Sep 2012 14:07:14 +0000 Subject: [PATCH] // Fix #PSCFV-3971 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17307 b9a71923-0436-4b27-9f14-aed3839534dd --- themes/default/js/product.js | 4 ++-- themes/default/product.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/default/js/product.js b/themes/default/js/product.js index 02fe730f9..ce63b51fd 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -634,7 +634,7 @@ function checkMinimalQuantity(minimal_quantity) function colorPickerClick(elt) { id_attribute = $(elt).attr('id').replace('color_', ''); - $('.color_pick').parent().removeClass('selected'); + $(elt).parent().parent().children().removeClass('selected'); $(elt).fadeTo('fast', 1, function(){ $(this).fadeTo('fast', 0, function(){ $(this).fadeTo('fast', 1, function(){ @@ -642,7 +642,7 @@ function colorPickerClick(elt) }); }); }); - $('#color_pick_hidden').val(id_attribute); + $(elt).parent().parent().parent().children('.color_pick_hidden,#color_pick_hidden').val(id_attribute); findCombination(false); } diff --git a/themes/default/product.tpl b/themes/default/product.tpl index b3f07ecb7..3ed595535 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -302,7 +302,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {/if} {/foreach} - + {elseif ($group.group_type == 'radio')} {foreach from=$group.attributes key=id_attribute item=group_attribute}