- Remove bug::ajaxLoadExecutionTeamMembers.
This commit is contained in:
@@ -1254,22 +1254,6 @@ class bug extends control
|
||||
return print(json_encode($items));
|
||||
}
|
||||
|
||||
/**
|
||||
* ajax方式获取产品关联执行的团队成员列表。
|
||||
* AJAX: get team members of the latest executions of a product as assignedTo list.
|
||||
*
|
||||
* @param int $productID
|
||||
* @param string $selectedUser
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function ajaxLoadExecutionTeamMembers(int $productID, string $selectedUser = '')
|
||||
{
|
||||
$productMembers = $this->bug->getProductMemberPairs($productID);
|
||||
|
||||
return print(html::select('assignedTo', $productMembers, $selectedUser, 'class="form-control"'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax 方式加载所有的用户。
|
||||
* AJAX: get all users as assignedTo list.
|
||||
|
||||
@@ -1,23 +1,3 @@
|
||||
/**
|
||||
* Load team members of the latest execution of a product as assignedTo list.
|
||||
*
|
||||
* @param int $productID
|
||||
* @param bool $changeProduct
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function loadExecutionTeamMembers(productID, changeProduct)
|
||||
{
|
||||
var link = createLink('bug', 'ajaxLoadExecutionTeamMembers', 'productID=' + productID + '&selectedUser=' + $('#assignedTo').val());
|
||||
$.post(link, function(data)
|
||||
{
|
||||
$('#assignedTo').replaceWith(data);
|
||||
$('#assignedTo_chosen').remove();
|
||||
$('#assignedTo').chosen();
|
||||
if(typeof(changeProduct) != undefined && changeProduct) setAssignedTo();
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Load assignedTo and stories of module.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user