// Improve attributes ergonomy with multishop #PSTEST-780
This commit is contained in:
@@ -72,10 +72,10 @@
|
|||||||
$('.input_group_shop').each(function(k, item)
|
$('.input_group_shop').each(function(k, item)
|
||||||
{
|
{
|
||||||
var id_group_shop = $(item).val();
|
var id_group_shop = $(item).val();
|
||||||
if (shop_associations[id_attribute_group] != 'undefined' && $.inArray(id_group_shop, shop_associations[id_attribute_group]))
|
if (shop_associations[id_attribute_group] != 'undefined' && $.inArray(id_group_shop, shop_associations[id_attribute_group]) > -1)
|
||||||
$(item).attr('disabled', false);
|
$(item).attr('disabled', false);
|
||||||
else
|
else
|
||||||
$(item).attr('disabled', true);
|
$(item).attr('disabled', true);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
$('#id_attribute_group').change(changeAssociationGroup);
|
$('#id_attribute_group').change(changeAssociationGroup);
|
||||||
|
|||||||
Reference in New Issue
Block a user