* Finish task#8730. Add budget notes when change parent program.

This commit is contained in:
qiyu-xie
2020-12-29 14:57:26 +08:00
parent f126cc1ca2
commit 3662d37593
2 changed files with 24 additions and 1 deletions
+23
View File
@@ -1,3 +1,15 @@
$(function()
{
setAclList($("#parent").val());
});
/**
* Set acl list.
*
* @param programID $programID
* @access public
* @return void
*/
function setAclList(programID)
{
if(programID != 0)
@@ -9,3 +21,14 @@ function setAclList(programID)
$('.aclBox').html($('#PGMAcl').html());
}
}
/**
* Set parent program.
*
* @access public
* @return void
*/
function setParentProgram(programID)
{
location.href = createLink('program', 'PGMCreate', 'programID=' + programID);
}
+1 -1
View File
@@ -25,7 +25,7 @@
<table class='table table-form'>
<tr>
<th class='w-120px'><?php echo $lang->program->PGMParent;?></th>
<td class="col-main"><?php echo html::select('parent', $parents, $program->parent, "class='form-control chosen' onchange=setAclList(this.value)");?></td>
<td class="col-main"><?php echo html::select('parent', $parents, $program->parent, "class='form-control chosen' onchange=setParentProgram(this.value)");?></td>
<td></td><td></td>
</tr>
<tr>