Revert "+ [task#137378,dong,2h] add updateItems."

This reverts commit 8cbebc6d4e759502a2f6b8ebe92d54a4471862da.
This commit is contained in:
liumengyi
2025-02-19 09:32:55 +08:00
committed by 刘刚
parent e46f5bf7a1
commit 23f004af15
-19
View File
@@ -179,22 +179,3 @@ window.loadRoadmapStories = function(event)
openUrl(link, {load: 'modal', size: 'lg', type: 'iframe'});
}
window.updateItems = function(currentProduct = '', currentBranch = '')
{
if($("[name^='product']").length == 0) return;
let chosenProducts = [];
$(".productsBox [name^='product']").each(function()
{
const productID = $(this).val();
if(productID > 0 && chosenProducts.indexOf(productID) == -1) chosenProducts.push(productID);
});
let chosenBranches = {};
if(currentProduct !== '') chosenBranches[currentProduct] = [];
if(currentBranch !== '') chosenBranches[currentProduct].push(currentBranch);
let allItems = zui.Picker.query("[name^='product']").options.items;
let productItems = [];
}