* Fix the creation and editing of stories and bugs.

This commit is contained in:
tianshujie
2021-11-17 09:21:05 +08:00
parent fdfadb7940
commit fdade49b5d
6 changed files with 27 additions and 4 deletions
+11
View File
@@ -39,6 +39,17 @@ function setBranchRelated(branchID, productID, num)
buildLink = createLink('build', 'ajaxGetProductBuilds', 'productID=' + productID + "&varName=openedBuilds&build=&branch=" + branchID + "&index=" + num);
/* If the branch of the current row is inconsistent with the one below, clear the module and execution of the nex row. */
var nextBranchID = $('#branch' + (num + 1)).val();
if(nextBranchID != branchID)
{
$('#modules' + (num + 1)).find("option[value='ditto']").remove();
$('#modules' + (num + 1)).trigger("chosen:updated");
$('#executions' + (num + 1)).find("option[value='ditto']").remove();
$('#executions' + (num + 1)).trigger("chosen:updated");
}
setOpenedBuilds(buildLink, num);
}