* Restore Code.

This commit is contained in:
qiyu-xie
2020-12-29 15:11:09 +08:00
parent 3662d37593
commit c0677e554c
2 changed files with 1 additions and 24 deletions
-23
View File
@@ -1,15 +1,3 @@
$(function()
{
setAclList($("#parent").val());
});
/**
* Set acl list.
*
* @param programID $programID
* @access public
* @return void
*/
function setAclList(programID)
{
if(programID != 0)
@@ -21,14 +9,3 @@ 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=setParentProgram(this.value)");?></td>
<td class="col-main"><?php echo html::select('parent', $parents, $program->parent, "class='form-control chosen' onchange=setAclList(this.value)");?></td>
<td></td><td></td>
</tr>
<tr>