Sha256: 86551b77f23e2c842cb16481d0900098a8f5d6112ae1b6cb9ab3c13ad36f4aa0
Contents?: true
Size: 1.01 KB
Versions: 31
Compression:
Stored size: 1.01 KB
Contents
import createFieldDependentInputs from "src/decidim/admin/field_dependent_inputs.component" $(() => { const $participantType = $("#monitoring_committee_member_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