* Finish task#8951.

This commit is contained in:
qiyu-xie
2021-01-08 08:58:04 +08:00
parent 55902954b8
commit 0e93f81de6
3 changed files with 35 additions and 2 deletions
+28
View File
@@ -281,3 +281,31 @@ $(function()
}
});
})
/**
* Set budget tips and acl list.
*
* @param int $parentProgramID
* @access public
* @return void
*/
function setBudgetTipsAndAclList(parentProgramID)
{
if(parentProgramID != 0)
{
$('.budgetSpan').removeClass('hidden');
parentProgram = PGMList[parentProgramID];
programBudget = parentProgram.budget;
PGMBudgetUnit = budgetUnitList[parentProgram.budgetUnit];
budgetNotes = programBudget != 0 ? (programBudget + PGMBudgetUnit) : future;
$('.budgetSpan').html(PGMParentBudget + budgetNotes);
$('.aclBox').html($('#subPGMAcl').html());
}
else
{
$('.budgetSpan').addClass('hidden');
$('.aclBox').html($('#PGMAcl').html());
}
}