Internal: Rename function, fix nonexistence code.

pull/3683/head
Julio Montoya 5 years ago
parent 2ca6c97368
commit 6a1c142143
  1. 9
      main/admin/user_add.php

@ -42,20 +42,15 @@ function password_switch_radio_button() {
var is_platform_id = "'.$is_platform_admin.'";
function display_drh_list(){
function updateStatus(){
if (document.getElementById("status_select").value=='.STUDENT.') {
document.getElementById("drh_list").style.display="block";
if (is_platform_id == 1)
document.getElementById("id_platform_admin").style.display="none";
} else if (document.getElementById("status_select").value=='.COURSEMANAGER.') {
document.getElementById("drh_list").style.display="none";
if (is_platform_id == 1)
document.getElementById("id_platform_admin").style.display="block";
} else {
document.getElementById("drh_list").style.display="none";
if (is_platform_id == 1)
document.getElementById("id_platform_admin").style.display="none";
}
@ -238,7 +233,7 @@ $form->addElement(
$status,
[
'id' => 'status_select',
'onchange' => 'javascript: display_drh_list();',
'onchange' => 'javascript: updateStatus();',
]
);

Loading…
Cancel
Save