Sha256: bb122156c79fe8123d52179e80ea11948a257fd3cdb6e62a141541cea9d7b14f

Contents?: true

Size: 814 Bytes

Versions: 12

Compression:

Stored size: 814 Bytes

Contents

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

// make sure that calendar modal will use the updated filter values
var $calendarShare = $('#calendarShare');
$calendarShare.remove();

$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.result.select(&:geocoded_and_valid?)).to_json.html_safe %>');

$("#calendarShare").foundation(); // initialize export calendar on the page

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-meetings-0.27.9 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.8 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.7 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.6 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.5 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.4 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.3 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.2 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.1 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.0 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.0.rc2 app/views/decidim/meetings/meetings/index.js.erb
decidim-meetings-0.27.0.rc1 app/views/decidim/meetings/meetings/index.js.erb