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