* [bug#66312,done,1.5h] add link plans field.
This commit is contained in:
@@ -243,13 +243,16 @@ window.updateItems = function()
|
||||
productItems[allItems[i].value].i = i;
|
||||
}
|
||||
|
||||
$(".productsBox [name^='products']").each(function()
|
||||
if($('.productsBox .linkProduct').length > 0)
|
||||
{
|
||||
const $product = $(this).zui('picker');
|
||||
const productID = $(this).val();
|
||||
let currentProductItems = JSON.parse(JSON.stringify(allItems));
|
||||
if(productID != 0) currentProductItems[productItems[productID].i].disabled = false;
|
||||
$(".productsBox [name^='products']").each(function()
|
||||
{
|
||||
const $product = $(this).zui('picker');
|
||||
const productID = $(this).val();
|
||||
let currentProductItems = JSON.parse(JSON.stringify(allItems));
|
||||
if(productID != 0) currentProductItems[productItems[productID].i].disabled = false;
|
||||
|
||||
$product.render({items: currentProductItems});
|
||||
});
|
||||
$product.render({items: currentProductItems});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user