Sha256: 1cd78bc0070383a0b848edbc14202d988881938c77ecd1a5ec56dbcd830895e5
Contents?: true
Size: 858 Bytes
Versions: 44
Compression:
Stored size: 858 Bytes
Contents
import createFieldDependentInputs from "src/decidim/admin/field_dependent_inputs.component" $(() => { const $attendeeType = $('[name="conference_registration_invite[existing_user]"'); createFieldDependentInputs({ controllerField: $attendeeType, wrapperSelector: ".attendee-fields", dependentFieldsSelector: ".attendee-fields--new-user", dependentInputSelector: "input", enablingCondition: () => { return $("#conference_registration_invite_existing_user_false").is(":checked") } }); createFieldDependentInputs({ controllerField: $attendeeType, wrapperSelector: ".attendee-fields", dependentFieldsSelector: ".attendee-fields--user-picker", dependentInputSelector: "input", enablingCondition: () => { return $("#conference_registration_invite_existing_user_true").is(":checked") } }); })
Version data entries
44 entries across 44 versions & 1 rubygems