*Finish task #45545.

This commit is contained in:
songchenxuan
2021-12-09 11:16:29 +08:00
parent 8b874bfbbc
commit 2b7e0ed4b3
7 changed files with 15 additions and 5 deletions
+5 -3
View File
@@ -54,7 +54,9 @@ function loadAll(productID)
{
$('#taskIdBox').innerHTML = '<select id="task"></select>'; // Reset the task.
$('#task').chosen();
loadProductBranches(productID)
var param = '';
if(page == 'create') param = 'active';
loadProductBranches(productID, param)
}
}
@@ -521,13 +523,13 @@ function setStories(moduleID, productID, storyID)
* @access public
* @return void
*/
function loadProductBranches(productID)
function loadProductBranches(productID, param)
{
$('#branch').remove();
$('#branch_chosen').remove();
$('#branch').next('.picker').remove();
var param = (typeof(tab) != 'undefined' && (tab == 'execution' || tab == 'project')) ? "productID=" + productID + "&oldBranch=0&param=&projectID=" + objectID : "productID=" + productID;
var param = (typeof(tab) != 'undefined' && (tab == 'execution' || tab == 'project')) ? "productID=" + productID + "&oldBranch=0&param=" + param + "&projectID=" + objectID : "productID=" + productID;
$.get(createLink('branch', 'ajaxGetBranches', param), function(data)
{
if(data)