Sha256: f90e465af72e6f20568c522f28bee3a9ed97e2652b5e6b7afa5b3d8efaf42804
Contents?: true
Size: 848 Bytes
Versions: 31
Compression:
Stored size: 848 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; window.theDataPicker.enabled($participatoryProcessScopeId, checked); if (checked === true) { $participatoryProcessScopeTypeId.removeAttr("disabled"); } else { $participatoryProcessScopeTypeId.attr("disabled", true) } }) window.theDataPicker.enabled($participatoryProcessScopeId, $participatoryProcessScopeEnabled.prop("checked")); } });
Version data entries
31 entries across 31 versions & 1 rubygems