src/public/js/object_functions.js
/**
 * Listener function that lazy loads all of the majors for a selected school at RPI.
 *
 * @returns {Promise<void>}
 */
Listener function that lazy loads all of the majors for a selected school at RPI.
@returns {Promise}
Listener function that lazy loads all of the majors for a selected school at RPI . @returns { Promise }
async function schoolSelectionChange(school_id, major_id) {
    const select = document.getElementById(school_id);
    if (select.value !== "") {
        const majors = await schools[select.value-1].getMajors();
        populateSelect(major_id, majors);
    }
}
async function schoolSelectionChange ( school_id , major_id ) { const select = document . getElementById ( school_id ) ; if ( select . value !== "" ) { const majors = await schools [ select . value - 1 ] . getMajors ( ) ; populateSelect ( major_id , majors ) ; } }
Listener function that lazy loads all of the majors for a selected school at RPI.
Listener function that lazy loads all of the majors for a selected school at RPI .