Sha256: 7bbde934eabe93e7676486d946d751be254cda8489a3bd225e385e03d8b91f18
Contents?: true
Size: 635 Bytes
Versions: 34
Compression:
Stored size: 635 Bytes
Contents
$(() => { const $form = $('.edit_meeting_registrations'); if ($form.length > 0) { const $registrationsEnabled = $form.find('#meeting_registrations_enabled'); const $availableSlots = $form.find('#meeting_available_slots'); const toggleDisabledFields = () => { const enabled = $registrationsEnabled.prop('checked'); $availableSlots.attr('disabled', !enabled); $form.find('.editor-container').each((idx, node) => { const quill = Quill.find(node); quill.enable(enabled); }) }; $registrationsEnabled.on('change', toggleDisabledFields); toggleDisabledFields(); } });
Version data entries
34 entries across 34 versions & 2 rubygems