Files
EasySoft-ZenTaoPMS/module/build/js/edit.js
tianshujie98 cdfbebc58b * Fix bug.
2021-03-08 09:30:34 +08:00

16 lines
518 B
JavaScript

var executionID = $('#execution').val();
function loadExecutions()
{
var productID = $('#product').val();
var branchID = $('#branch').length > 0 ? $('#branch').val() : 0;
$('#executionsBox').load(createLink('product', 'ajaxGetExecutions', 'productID=' + productID + '&executionID=' + executionID + '&branch=' + branchID), function()
{
$('#executionsBox #execution').chosen().removeAttr('onchange');
});
}
$(document).on('change', '#product,#branch', function()
{
loadExecutions();
})