// Fix Bug with adding attribute values when attribute type is pre-selected to a color option
This commit is contained in:
@@ -48,11 +48,17 @@
|
|||||||
|
|
||||||
{block name="script"}
|
{block name="script"}
|
||||||
var attributesGroups = {ldelim}{$strAttributesGroups}{rdelim};
|
var attributesGroups = {ldelim}{$strAttributesGroups}{rdelim};
|
||||||
$('#id_attribute_group').change(function() {
|
|
||||||
var val = $(this).val();
|
var displayColorFieldsOption = function() {
|
||||||
|
var val = $('#id_attribute_group').val();
|
||||||
if (attributesGroups[val])
|
if (attributesGroups[val])
|
||||||
$('#colorAttributeProperties').show();
|
$('#colorAttributeProperties').show();
|
||||||
else
|
else
|
||||||
$('#colorAttributeProperties').hide();
|
$('#colorAttributeProperties').hide();
|
||||||
});
|
};
|
||||||
|
|
||||||
|
displayColorFieldsOption();
|
||||||
|
|
||||||
|
$('#id_attribute_group').change(displayColorFieldsOption);
|
||||||
|
|
||||||
{/block}
|
{/block}
|
||||||
|
|||||||
Reference in New Issue
Block a user