diff --git a/module/program/js/pgmedit.js b/module/program/js/pgmedit.js index 21de13d9eb..00bd6061e0 100644 --- a/module/program/js/pgmedit.js +++ b/module/program/js/pgmedit.js @@ -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); +} diff --git a/module/program/view/pgmedit.html.php b/module/program/view/pgmedit.html.php index bf62db6c70..31bf5cbba6 100644 --- a/module/program/view/pgmedit.html.php +++ b/module/program/view/pgmedit.html.php @@ -25,7 +25,7 @@ - +
program->PGMParent;?>parent, "class='form-control chosen' onchange=setAclList(this.value)");?>parent, "class='form-control chosen' onchange=setParentProgram(this.value)");?>