Revert "+ [task#137378,dong,1h] add loadBranches."
This reverts commit 7e0efc6b5b428dc2ff3a41ea3262760109693941.
This commit is contained in:
@@ -195,26 +195,6 @@ window.loadBranches = function(product)
|
||||
if(typeof projectID == 'undefined') projectID = 0;
|
||||
$.getJSON($.createLink('branch', 'ajaxGetBranches', "productID=" + currentProduct + "&oldBranch=¶m=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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user