* Fix edit project logic.
This commit is contained in:
@@ -13,6 +13,11 @@ $(function()
|
||||
}
|
||||
});
|
||||
|
||||
$('#parent').click(function()
|
||||
{
|
||||
if(!confirm(PGMChangeTips)) return false;
|
||||
})
|
||||
|
||||
adjustProductBoxMargin();
|
||||
adjustPlanBoxMargin();
|
||||
});
|
||||
@@ -28,3 +33,18 @@ function setAclList(programID)
|
||||
$('.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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user