* fix a bug #689.
This commit is contained in:
@@ -10,13 +10,13 @@ function loadProduct(productID)
|
||||
function loadProductModules(productID)
|
||||
{
|
||||
moduleLink = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + productID + '&viewtype=story&rootModuleID=0&returnType=html&needManage=true');
|
||||
$('#moduleIdBox').load(moduleLink);
|
||||
$('#moduleIdBox').load(moduleLink, function(){$('#moduleIdBox #module').chosen(defaultChosenOptions);});
|
||||
}
|
||||
|
||||
function loadProductPlans(productID)
|
||||
{
|
||||
planLink = createLink('product', 'ajaxGetPlans', 'productID=' + productID + '&planID=' + $('#plan').val() + '&needCreate=true');
|
||||
$('#planIdBox').load(planLink);
|
||||
$('#planIdBox').load(planLink, function(){$('#planIdBox #plan').chosen(defaultChosenOptions);});
|
||||
}
|
||||
|
||||
$(function()
|
||||
|
||||
@@ -299,7 +299,9 @@ class tree extends control
|
||||
}
|
||||
if($returnType == 'html')
|
||||
{
|
||||
$output = html::select("module", $optionMenu, '', "onchange='loadModuleRelated()' class='form-control'");
|
||||
$changeFunc = '';
|
||||
if($viewType == 'task' or $viewType == 'bug' or $viewType == 'testcase') $changeFunc = "onchange='loadModuleRelated()'";
|
||||
$output = html::select("module", $optionMenu, '', "class='form-control' $changeFunc");
|
||||
if(count($optionMenu) == 1 and $needManage)
|
||||
{
|
||||
$output .= "<span class='input-group-addon'>";
|
||||
|
||||
Reference in New Issue
Block a user