Sha256: a10189fff32c4e33ed585da3b7804ad05f0c62133eca683f58526460e93879e2

Contents?: true

Size: 444 Bytes

Versions: 17

Compression:

Stored size: 444 Bytes

Contents

var $activities = $('#activities');

$activities.html('<%= j(render partial: "activities").strip.html_safe %>');

var options = document.querySelectorAll("#dropdown-trigger span");

if (options.length) {
  // Update the current selector
  var currentFilter = "<%= params.dig(:filter, :with_resource_type) %>";
  options.forEach(opt => opt.dataset.value === currentFilter ? opt.classList.add("is-active") : opt.classList.remove("is-active"));
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
decidim-core-0.30.0.rc2 app/views/decidim/last_activities/index.js.erb
decidim-core-0.30.0.rc1 app/views/decidim/last_activities/index.js.erb
decidim-core-0.29.2 app/views/decidim/last_activities/index.js.erb
decidim-core-0.28.5 app/views/decidim/last_activities/index.js.erb
decidim-core-0.29.1 app/views/decidim/last_activities/index.js.erb
decidim-core-0.28.4 app/views/decidim/last_activities/index.js.erb
decidim-core-0.29.0 app/views/decidim/last_activities/index.js.erb
decidim-core-0.28.3 app/views/decidim/last_activities/index.js.erb
decidim-core-0.29.0.rc4 app/views/decidim/last_activities/index.js.erb
decidim-core-0.29.0.rc3 app/views/decidim/last_activities/index.js.erb
decidim-core-0.29.0.rc2 app/views/decidim/last_activities/index.js.erb
decidim-core-0.29.0.rc1 app/views/decidim/last_activities/index.js.erb
decidim-core-0.28.2 app/views/decidim/last_activities/index.js.erb
decidim-core-0.28.1 app/views/decidim/last_activities/index.js.erb
decidim-core-0.28.0 app/views/decidim/last_activities/index.js.erb
decidim-core-0.28.0.rc5 app/views/decidim/last_activities/index.js.erb
decidim-core-0.28.0.rc4 app/views/decidim/last_activities/index.js.erb