Sha256: f06f44fa90b7ac08cf8ce1e1bea3710f78befd295cdd918dba33455a6913789e

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

(() => {
  const $scope = $("#promoting-committee-details");

  const $promotingCommitteeCheckbox = $(
    "#initiatives_type_promoting_committee_enabled",
    $scope
  );

  const toggleVisibility = () => {
    if ($promotingCommitteeCheckbox.is(":checked")) {
      $(".minimum-committee-members-details", $scope).show();
    } else {
      $(".minimum-committee-members-details", $scope).hide();
    }
  };

  $($promotingCommitteeCheckbox).click(() => toggleVisibility());

  toggleVisibility();
})();

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-initiatives-0.22.0 app/assets/javascripts/decidim/initiatives/admin/initiatives_types.js.es6
decidim-initiatives-0.21.0 app/assets/javascripts/decidim/initiatives/admin/initiatives_types.js.es6
decidim-initiatives-0.20.1 app/assets/javascripts/decidim/initiatives/admin/initiatives_types.js.es6
decidim-initiatives-0.20.0 app/assets/javascripts/decidim/initiatives/admin/initiatives_types.js.es6