38 lines
820 B
JavaScript
38 lines
820 B
JavaScript
/**
|
|
* Load execution related builds
|
|
*
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
function loadProductRelated()
|
|
{
|
|
loadExecutions($('#product').val());
|
|
loadTestReports($('#product').val());
|
|
loadExecutionBuilds($('#execution').val())
|
|
}
|
|
|
|
/**
|
|
* Load executions.
|
|
*
|
|
* @param int productID
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
function loadExecutions(productID)
|
|
{
|
|
var executionID = $('#execution').val();
|
|
|
|
link = $.createLink('product', 'ajaxGetExecutions', 'productID=' + productID + '&projectID=' + projectID + '&branch=');
|
|
$.get(link, function(data)
|
|
{
|
|
if(!data) data = '<select id="execution" name="execution" class="form-control"></select>';
|
|
$('#execution').replaceWith(data);
|
|
$("#execution").val(executionID);
|
|
});
|
|
}
|
|
|
|
$(function()
|
|
{
|
|
loadProductRelated();
|
|
});
|