// Fix #PSCFV-3971
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -302,7 +302,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
|
||||
{/if}
|
||||
{/foreach}
|
||||
</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')}
|
||||
{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}">
|
||||
|
||||
Reference in New Issue
Block a user