* Finish task#8951. Delete useless files.
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
$(function()
|
||||
{
|
||||
setAclList($("#parent").val());
|
||||
});
|
||||
|
||||
/**
|
||||
* Set acl list.
|
||||
*
|
||||
* @param int $programID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function setAclList(programID)
|
||||
{
|
||||
if(programID != 0)
|
||||
{
|
||||
$('.aclBox').html($('#subPGMAcl').html());
|
||||
}
|
||||
else
|
||||
{
|
||||
$('.aclBox').html($('#PGMAcl').html());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set parent program.
|
||||
*
|
||||
* @param int $programID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function setParentProgram(programID)
|
||||
{
|
||||
location.href = createLink('program', 'PGMCreate', 'programID=' + programID);
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/**
|
||||
* 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user