Revert "+ [task#137378,dong,2h] add updateItems."
This reverts commit 8cbebc6d4e759502a2f6b8ebe92d54a4471862da.
This commit is contained in:
@@ -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 = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user