Merge branch '15.0.beta3' of http://gitlab.zcorp.cc/easycorp/zentaopms into 15.0.beta3

This commit is contained in:
zhujinyong
2021-03-29 11:31:30 +08:00
25 changed files with 115 additions and 69 deletions
+25 -1
View File
@@ -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. */