From 23f004af15fe92b096ac2febaefe4fc6df66b7f3 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 19 Feb 2025 09:25:30 +0800 Subject: [PATCH] Revert "+ [task#137378,dong,2h] add updateItems." This reverts commit 8cbebc6d4e759502a2f6b8ebe92d54a4471862da. --- lib/zin/wg/productcharterbox/js/v1.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/zin/wg/productcharterbox/js/v1.js b/lib/zin/wg/productcharterbox/js/v1.js index 8157f55a1d..30f7084eef 100644 --- a/lib/zin/wg/productcharterbox/js/v1.js +++ b/lib/zin/wg/productcharterbox/js/v1.js @@ -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 = []; -}