Sha256: e472746f5995af7e646a16826341344dae0243613144c4d753dcaa29c8e3afbd
Contents?: true
Size: 1.04 KB
Versions: 31
Compression:
Stored size: 1.04 KB
Contents
$(() => { const $conferenceScopeEnabled = $("#conference_scopes_enabled"); const $conferenceScopeId = $("#conference_scope_id"); const $form = $(".edit_conference, .new_conference"); if ($form.length > 0) { $conferenceScopeEnabled.on("change", (event) => { const checked = event.target.checked; window.theDataPicker.enabled($conferenceScopeId, checked); }) window.theDataPicker.enabled($conferenceScopeId, $conferenceScopeEnabled.prop("checked")); const $registrationsEnabled = $form.find("#conference_registrations_enabled"); const $availableSlots = $form.find("#conference_available_slots"); const toggleDisabledFields = () => { const enabled = $registrationsEnabled.prop("checked"); $availableSlots.attr("disabled", !enabled); $form.find("#conference_registrations_terms .editor-container").each((idx, node) => { const quill = Quill.find(node); quill.enable(enabled); }) }; $registrationsEnabled.on("change", toggleDisabledFields); toggleDisabledFields(); } });
Version data entries
31 entries across 31 versions & 1 rubygems