Sha256: e8746a74c81668ef5c12946c27a215a023e8dfe52c854d44cc2f0a69e0033f0c

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

import "select2"

$(() => {
  const $select = $("#config_additional_proposal_sortings");
  $select.select2({
    theme: "foundation"
  });
  $("#additional_proposal_sortings-enable-all").on("click", (evt) => {
    evt.preventDefault();
    $select.find("option").prop("selected", true);
    $select.trigger("change");
  });
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.10.3 app/packs/src/decidim/decidim_awesome/admin/proposal_sortings.js
decidim-decidim_awesome-0.10.2 app/packs/src/decidim/decidim_awesome/admin/proposal_sortings.js
decidim-decidim_awesome-0.10.1 app/packs/src/decidim/decidim_awesome/admin/proposal_sortings.js
decidim-decidim_awesome-0.10.0 app/packs/src/decidim/decidim_awesome/admin/proposal_sortings.js