* Ajdust project/program module.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user