Sha256: 757549533291a327375f3266c7563b96a6334c45968d779b2d79d30399aa7e0b
Contents?: true
Size: 826 Bytes
Versions: 13
Compression:
Stored size: 826 Bytes
Contents
$(() => { const $participatoryProcessScopeEnabled = $("#participatory_process_scopes_enabled"); const $participatoryProcessScopeId = $("#participatory_process_scope_id"); const $participatoryProcessScopeTypeId = $("#participatory_process_scope_type_max_depth_id"); if ($(".edit_participatory_process, .new_participatory_process").length > 0) { $participatoryProcessScopeEnabled.on("change", (event) => { const checked = event.target.checked; $participatoryProcessScopeId.attr("disabled", !checked); if (checked === true) { $participatoryProcessScopeTypeId.removeAttr("disabled"); } else { $participatoryProcessScopeTypeId.attr("disabled", true) } $participatoryProcessScopeId.attr("disabled", !$participatoryProcessScopeEnabled.prop("checked")); }) } });
Version data entries
13 entries across 13 versions & 1 rubygems