Sha256: ebe50615400a60d175d5bb084e42068dddd18987a26730fa1a01ba4bb669b438
Contents?: true
Size: 1 KB
Versions: 31
Compression:
Stored size: 1 KB
Contents
import createFieldDependentInputs from "src/decidim/admin/field_dependent_inputs.component" $(() => { const $participantType = $("#polling_officer_existing_user"); createFieldDependentInputs({ controllerField: $participantType, wrapperSelector: ".user-fields", dependentFieldsSelector: ".user-fields--email", dependentInputSelector: "input", enablingCondition: ($field) => { return $field.val() === "false" } }); createFieldDependentInputs({ controllerField: $participantType, wrapperSelector: ".user-fields", dependentFieldsSelector: ".user-fields--name", dependentInputSelector: "input", enablingCondition: ($field) => { return $field.val() === "false" } }); createFieldDependentInputs({ controllerField: $participantType, wrapperSelector: ".user-fields", dependentFieldsSelector: ".user-fields--user-picker", dependentInputSelector: "input", enablingCondition: ($field) => { return $field.val() === "true" } }); })
Version data entries
31 entries across 31 versions & 1 rubygems