Sha256: b59079542f4069cf10d7350b360ae451b61099961b0f1305db792caa64f85946
Contents?: true
Size: 706 Bytes
Versions: 8
Compression:
Stored size: 706 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); } else { // @deprecated Legacy support window.Decidim.currentMap = window.Decidim.loadMap('map', markerData); }
Version data entries
8 entries across 8 versions & 1 rubygems