// Fix #PSCFV-3971

This commit is contained in:
rGaillard
2012-09-12 14:07:14 +00:00
parent ce3ea084f8
commit 2f55d5c016
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -634,7 +634,7 @@ function checkMinimalQuantity(minimal_quantity)
function colorPickerClick(elt) function colorPickerClick(elt)
{ {
id_attribute = $(elt).attr('id').replace('color_', ''); id_attribute = $(elt).attr('id').replace('color_', '');
$('.color_pick').parent().removeClass('selected'); $(elt).parent().parent().children().removeClass('selected');
$(elt).fadeTo('fast', 1, function(){ $(elt).fadeTo('fast', 1, function(){
$(this).fadeTo('fast', 0, function(){ $(this).fadeTo('fast', 0, function(){
$(this).fadeTo('fast', 1, 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); findCombination(false);
} }
+1 -1
View File
@@ -302,7 +302,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
{/if} {/if}
{/foreach} {/foreach}
</ul> </ul>
<input type="hidden" id="color_pick_hidden" name="{$groupName}" value="{$default_colorpicker}" /> <input type="hidden" class="color_pick_hidden" name="{$groupName}" value="{$default_colorpicker}" />
{elseif ($group.group_type == 'radio')} {elseif ($group.group_type == 'radio')}
{foreach from=$group.attributes key=id_attribute item=group_attribute} {foreach from=$group.attributes key=id_attribute item=group_attribute}
<input type="radio" class="attribute_radio" name="{$groupName}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if} onclick="findCombination();getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if}"> <input type="radio" class="attribute_radio" name="{$groupName}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if} onclick="findCombination();getProductAttribute();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if}">