From 3a7fdb72344afe78306e85dabe8c5108b7946b2b Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Fri, 8 Jan 2021 09:04:01 +0800 Subject: [PATCH] * Finish task#8951. Delete useless files. --- module/program/js/pgmcreate.js | 35 ---------------------------------- module/program/js/pgmedit.js | 27 -------------------------- 2 files changed, 62 deletions(-) delete mode 100644 module/program/js/pgmcreate.js delete mode 100644 module/program/js/pgmedit.js diff --git a/module/program/js/pgmcreate.js b/module/program/js/pgmcreate.js deleted file mode 100644 index 9b1127db05..0000000000 --- a/module/program/js/pgmcreate.js +++ /dev/null @@ -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); -} diff --git a/module/program/js/pgmedit.js b/module/program/js/pgmedit.js deleted file mode 100644 index fe8f52ef49..0000000000 --- a/module/program/js/pgmedit.js +++ /dev/null @@ -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()); - } -}