// 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"}
|
||||
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])
|
||||
$('#colorAttributeProperties').show();
|
||||
else
|
||||
$('#colorAttributeProperties').hide();
|
||||
});
|
||||
};
|
||||
|
||||
displayColorFieldsOption();
|
||||
|
||||
$('#id_attribute_group').change(displayColorFieldsOption);
|
||||
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user