This commit is contained in:
tianshujie
2021-10-14 14:11:14 +08:00
parent 07fbc65dfd
commit 5c867b2c96
+4
View File
@@ -831,12 +831,16 @@ function setProgramByProduct(product)
{
$(this).prop('checked', false);
$(this).attr('disabled', 'disabled');
$('#checkAllProducts').attr('disabled', 'disabled');
$('#checkAllProjects').attr('disabled', 'disabled');
$('[data-product=' + currentProductID + ']').prop('checked', false);
$('[data-product=' + currentProductID + ']').attr('disabled', 'disabled');
}
else if($(':checkbox:checked[data-programid=' + programID + ']').length == 0)
{
$(this).removeAttr('disabled');
$('#checkAllProducts').removeAttr('disabled');
$('#checkAllProjects').removeAttr('disabled');
$('[data-product=' + currentProductID + ']').removeAttr('disabled');
}
}