Sha256: c8112dc3e626cdebe29f07360ea422bcf6d117629a5a237bcea9326469092194
Contents?: true
Size: 693 Bytes
Versions: 3
Compression:
Stored size: 693 Bytes
Contents
var $proposals = $('#proposals'); var $proposalsCount = $('#proposals-count'); var $orderFilterInput = $('.order_filter'); $proposals.html('<%= j(render partial: "proposals").strip.html_safe %>'); $proposalsCount.html('<%= j(render partial: "count").strip.html_safe %>'); $orderFilterInput.val('<%= order %>'); var $dropdownMenu = $('.dropdown.menu', $proposals); $dropdownMenu.foundation(); var markerData = JSON.parse('<%= escape_javascript proposals_data_for_map(search.result.select(&:geocoded_and_valid?)) .to_json.html_safe %>'); var $map = $("#map"); var controller = $map.data("map-controller"); if (controller) { controller.clearMarkers(); controller.addMarkers(markerData); }
Version data entries
3 entries across 3 versions & 1 rubygems