Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
9 ariadna 1
export const init = () => {
2
    document.querySelector('#id_s_block_openai_chat_type').addEventListener('change', e => {
3
        // If the API Type is changed, programmatically hit save so the page automatically reloads with the new options
4
        document.querySelector('.settingsform').classList.add('block_openai_chat')
5
        document.querySelector('.settingsform').classList.add('disabled')
6
        document.querySelector('.settingsform button[type="submit"]').click()
7
    })
8
}