Revert "+ [task#137378,dong,1h] add loadBranches."

This reverts commit 7e0efc6b5b428dc2ff3a41ea3262760109693941.
This commit is contained in:
liumengyi
2025-02-19 09:32:55 +08:00
committed by 刘刚
parent d99cbdade9
commit bb865bb755
-20
View File
@@ -195,26 +195,6 @@ window.loadBranches = function(product)
if(typeof projectID == 'undefined') projectID = 0;
$.getJSON($.createLink('branch', 'ajaxGetBranches', "productID=" + currentProduct + "&oldBranch=&param=active&projectID=" + projectID + "&withMainBranch=true&isTwins=no&fieldID=0&multiple=&charterID=" + charterID), function(data)
{
if(data.length > 0)
{
let chosenBranches = [];
$('[name^=product][value="' + currentProduct + '"]').closest('.productBox').find('[name^="branch"]').each(function()
{
if(!isNaN($(this).val()) && $(this).val() !== '') chosenBranches.push($(this).val().toString());
});
}
else
{
if(objectType == 'roadmap')
{
loadRoadmap(product);
}
else
{
loadPlan(product);
}
updateItems();
}
});
}