// Fix Bug with adding attribute values when attribute type is pre-selected to a color option
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12853 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
22483a0320
commit
569eaf1841
1 file changed
+9
-3
@@ -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