*Finish task #45545.
This commit is contained in:
@@ -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¶m=&projectID=" + objectID : "productID=" + productID;
|
||||
var param = (typeof(tab) != 'undefined' && (tab == 'execution' || tab == 'project')) ? "productID=" + productID + "&oldBranch=0¶m=" + param + "&projectID=" + objectID : "productID=" + productID;
|
||||
$.get(createLink('branch', 'ajaxGetBranches', param), function(data)
|
||||
{
|
||||
if(data)
|
||||
|
||||
Reference in New Issue
Block a user