38 lines
705 B
JavaScript
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");
|
|
}
|
|
}
|