Files
EasySoft-ZenTaoPMS/module/program/js/prjedit.js
2020-11-18 14:58:07 +08:00

38 lines
705 B
JavaScript

$(function()
{
$('#parent').click(function()
{
if(!confirm(PGMChangeTips)) return false;
})
adjustProductBoxMargin();
adjustPlanBoxMargin();
});
function setAclList(programID)
{
if(programID != 0)
{
$('.aclBox').html($('#PGMAcl').html());
}
else
{
$('.aclBox').html($('#PRJAcl').html());
}
}
function setParentProgram()
{
var parentProgram = $("#parent").val();
if(confirm(PGMChangeTips))
{
location.href = createLink('program', 'PRJEdit', 'projectID=' + projectID + '&programID=' + parentProgram);
}
else
{
$('#parent').val(oldParent);
$("#parent").trigger("chosen:updated");
}
}