Sha256: 30ed21e402746a269afa9fecd141c5d4bf4e03e34c695fd4fdae291d7616cce5
Contents?: true
Size: 742 Bytes
Versions: 44
Compression:
Stored size: 742 Bytes
Contents
import createFieldDependentInputs from "src/decidim/admin/field_dependent_inputs.component" $(() => { const $debateType = $('[name="debate[finite]"'); createFieldDependentInputs({ controllerField: $debateType, wrapperSelector: ".debate-fields", dependentFieldsSelector: ".debate-fields--open", dependentInputSelector: "input", enablingCondition: () => { return $("#debate_finite_false").is(":checked") } }); createFieldDependentInputs({ controllerField: $debateType, wrapperSelector: ".debate-fields", dependentFieldsSelector: ".debate-fields--finite", dependentInputSelector: "input", enablingCondition: () => { return $("#debate_finite_true").is(":checked") } }); })
Version data entries
44 entries across 44 versions & 1 rubygems