From 508514752bdf7a440303ecd3bb2d5d0a3c7c440f Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 8 Mar 2012 14:06:21 +0000 Subject: [PATCH] // Improve attributes ergonomy with multishop #PSTEST-780 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13971 b9a71923-0436-4b27-9f14-aed3839534dd --- .../template/controllers/attributes/helpers/form/form.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl index aad64ef04..61eaa1de9 100644 --- a/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/attributes/helpers/form/form.tpl @@ -72,10 +72,10 @@ $('.input_group_shop').each(function(k, item) { var id_group_shop = $(item).val(); - if (shop_associations[id_attribute_group] != 'undefined' && $.inArray(id_group_shop, shop_associations[id_attribute_group])) - $(item).attr('disabled', false); + if (shop_associations[id_attribute_group] != 'undefined' && $.inArray(id_group_shop, shop_associations[id_attribute_group]) > -1) + $(item).attr('disabled', false); else - $(item).attr('disabled', true); + $(item).attr('disabled', true); }); }; $('#id_attribute_group').change(changeAssociationGroup);