* Ajdust project/program module.

This commit is contained in:
zhujinyong
2021-03-05 16:09:31 +08:00
parent df2ecf0c44
commit 426e118db1
6 changed files with 115 additions and 131 deletions
+7 -7
View File
@@ -285,21 +285,21 @@ $(function()
/**
* Set budget tips and acl list.
*
* @param int $parentProgramID
* @param int $programID
* @access public
* @return void
*/
function setBudgetTipsAndAclList(parentProgramID)
function setBudgetTipsAndAclList(programID)
{
if(parentProgramID != 0)
if(programID != 0)
{
$.get(createLink('program', 'ajaxGetAvailableBudget', "parentProgramID=" + parentProgramID), function(availableBudget)
$.get(createLink('program', 'ajaxGetBudgetLeft', "ProgramID=" + programID), function(budgetLeft)
{
parentProgram = PGMList[parentProgramID];
parentProgram = PGMList[programID];
programBudget = parentProgram.budget;
PGMBudgetUnit = currencySymbol[parentProgram.budgetUnit];
PGMBudgetUnit = currencySymbol[program.budgetUnit];
budgetNotes = programBudget != 0 ? (PGMParentBudget + PGMBudgetUnit + availableBudget) : '';
budgetNotes = programBudget != 0 ? (PGMParentBudget + PGMBudgetUnit + budgetLeft) : '';
$('#budget').attr('placeholder', budgetNotes);
});
$('.aclBox').html($('#subPGMAcl').html());