// Fix bug with checkbox and multishop
This commit is contained in:
@@ -71,7 +71,7 @@
|
|||||||
var id_attribute_group = $('#id_attribute_group').val();
|
var id_attribute_group = $('#id_attribute_group').val();
|
||||||
$('.input_shop').each(function(k, item)
|
$('.input_shop').each(function(k, item)
|
||||||
{
|
{
|
||||||
var id_shop = $(item).val();
|
var id_shop = $(item).attr('shop_id');
|
||||||
if (typeof shop_associations[id_attribute_group] != 'undefined' && $.inArray(id_shop, shop_associations[id_attribute_group]) > -1)
|
if (typeof shop_associations[id_attribute_group] != 'undefined' && $.inArray(id_shop, shop_associations[id_attribute_group]) > -1)
|
||||||
$(item).attr('disabled', false);
|
$(item).attr('disabled', false);
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -114,7 +114,8 @@ function check_all_shop() {
|
|||||||
<label class="child">
|
<label class="child">
|
||||||
<input class="input_shop"
|
<input class="input_shop"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
value="{$shopID}"
|
value="{$groupID}"
|
||||||
|
shop_id="{$shopID}"
|
||||||
name="checkBoxShopAsso_{$table}[{$form_id}][{$shopID}]"
|
name="checkBoxShopAsso_{$table}[{$form_id}][{$shopID}]"
|
||||||
id="checkedBox_{$shopID}"
|
id="checkedBox_{$shopID}"
|
||||||
{if $checked} checked="checked"{/if} />
|
{if $checked} checked="checked"{/if} />
|
||||||
|
|||||||
Reference in New Issue
Block a user