Sha256: 84a142d86d21a844c0e57569c0d873fbdd6dc51b31848889e76a53157d084e8e

Contents?: true

Size: 422 Bytes

Versions: 28

Compression:

Stored size: 422 Bytes

Contents

$(() => {
  const $assemblyScopeEnabled = $('#assembly_scopes_enabled');
  const $assemblyScopeId = $("#assembly_scope_id");

  if ($('.edit_assembly, .new_assembly').length > 0) {
    $assemblyScopeEnabled.on('change', (event) => {
      const checked = event.target.checked;
      $assemblyScopeId.attr("disabled", !checked);
    })
    $assemblyScopeId.attr("disabled", !$assemblyScopeEnabled.prop('checked'));
  }
});

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
decidim-assemblies-0.6.3 app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6
decidim-0.6.3 decidim-assemblies/app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6
decidim-assemblies-0.6.2 app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6
decidim-0.6.2 decidim-assemblies/app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6
decidim-assemblies-0.6.1 app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6
decidim-0.6.1 decidim-assemblies/app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6
decidim-assemblies-0.6.0 app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6
decidim-0.6.0 decidim-assemblies/app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6