Merge branch '15.0.beta3' of http://gitlab.zcorp.cc/easycorp/zentaopms into 15.0.beta3
This commit is contained in:
@@ -6,7 +6,31 @@
|
||||
*/
|
||||
function loadProductRelated()
|
||||
{
|
||||
loadExecutionBuilds(parseInt($('#execution').val()));
|
||||
loadExecutions($('#product').val());
|
||||
data = '<select id="build" name="build" class="form-control"></select>';
|
||||
$('#build').replaceWith(data);
|
||||
$('#build_chosen').remove();
|
||||
$("#build").chosen();
|
||||
$('#build').trigger("chosen:updated");
|
||||
}
|
||||
|
||||
/**
|
||||
* Load executions.
|
||||
*
|
||||
* @param int productID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function loadExecutions(productID)
|
||||
{
|
||||
link = createLink('product', 'ajaxGetExecutions', 'productID=' + productID + '&projectID=' + projectID);
|
||||
$.get(link, function(data)
|
||||
{
|
||||
if(!data) data = '<select id="execution" name="execution" class="form-control"></select>';
|
||||
$('#execution').replaceWith(data);
|
||||
$('#execution_chosen').remove();
|
||||
$("#execution").chosen();
|
||||
});
|
||||
}
|
||||
|
||||
/* If the mouse hover over the manage contacts button, give tip. */
|
||||
|
||||
Reference in New Issue
Block a user