Sha256: 747bf20ad4d1fcf7653bfb249799d4a1d0d151e7e028f69c0e77f7bdb38c0182

Contents?: true

Size: 592 Bytes

Versions: 5

Compression:

Stored size: 592 Bytes

Contents

var $meetings = $('#meetings');
var $meetingsCount = $('#meetings-count');

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

var $dropdownMenu = $('.dropdown.menu', $meetings);
$dropdownMenu.foundation();

var markerData = JSON.parse('<%= escape_javascript meetings_data_for_map(search.results.select(&:geocoded?)).to_json.html_safe %>');

var $map = $("#map");
var controller = $map.data("map-controller");
if (controller) {
  controller.clearMarkers();
  controller.addMarkers(markerData);
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-meetings-0.24.2 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.24.1 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.24.0 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.24.0.rc2 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.24.0.rc1 app/views/decidim/meetings/meetings/index.js.erb