src/public/js/admin_page.js
/**
 * Populates the edit major fields.
 *
 * @param major_id The id of the selected major
 */
Populates the edit major fields.
@param major_id The id of the selected major
Populates the edit major fields . @param major_id The id of the selected major
function majorSelect(major_id)
{
    let major = global_majors[major_id];
    document.getElementById('edit_major_label').value = major.name;
    document.getElementById('edit_major_select_school').value = major.school_id;
}
function majorSelect ( major_id ) { let major = global_majors [ major_id ] ; document . getElementById ( 'edit_major_label' ) . value = major . name ; document . getElementById ( 'edit_major_select_school' ) . value = major . school_id ; }
Populates the edit major fields.
Populates the edit major fields .