Sha256: afcfcb01054917e34fb36f333ebe09d16c0fd56e38032e6738379e1b2d85aad9

Contents?: true

Size: 505 Bytes

Versions: 13

Compression:

Stored size: 505 Bytes

Contents

const toggleInfo = (val) => {
  document.querySelectorAll(".help-text").forEach((toBeHidden) => {
    if (val === toBeHidden.id && toBeHidden.classList.value.includes("hide")) {
      toBeHidden.classList.remove("hide")
    } else {
      toBeHidden.classList.add("hide")
    }
  });
};
export default () => {
  const item = document.querySelector("#result_import_projects_origin_component_id");
  item.addEventListener(("change"), (event) => {
    toggleInfo(`component_${event.target.value}`);
  });
};

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-accountability-0.29.1 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.28.4 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.29.0 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.28.3 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.29.0.rc4 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.29.0.rc3 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.29.0.rc2 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.29.0.rc1 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.28.2 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.28.1 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.28.0 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.28.0.rc5 app/packs/src/decidim/accountability/admin/imports.js
decidim-accountability-0.28.0.rc4 app/packs/src/decidim/accountability/admin/imports.js