src/public/js/admin_page.js
/**
 * Populates the admin select dropdown
 *
 * @param id The id of the selected user
 */
Populates the admin select dropdown
@param id The id of the selected user
Populates the admin select dropdown @param id The id of the selected user
function userSelect(id)
{
    let user = global_users[id];
    if(user.isadmin === 1)
    {
        $("#admin").prop("checked", true);
    }
    else
    {
        $("#non_admin").prop("checked", true);
    }
}
function userSelect ( id ) { let user = global_users [ id ] ; if ( user . isadmin === 1 ) { $ ( "#admin" ) . prop ( "checked" , true ) ; } else { $ ( "#non_admin" ) . prop ( "checked" , true ) ; } }
Populates the admin select dropdown
 @param id The id of the selected user
Populates the admin select dropdown @param id The id of the selected user