* Fix edit project logic.

This commit is contained in:
Yagami
2020-11-03 10:05:28 +08:00
parent 0be65f7950
commit a0048a136c
5 changed files with 63 additions and 20 deletions
+20
View File
@@ -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");
}
}