@bmlt-enabled/croutonjs 3.16.2 → 3.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/crouton.js +4 -1
- package/crouton.min.js +1 -1
- package/crouton.nojquery.js +4 -1
- package/crouton.nojquery.min.js +1 -1
- package/package.json +1 -1
package/crouton.js
CHANGED
|
@@ -14602,6 +14602,7 @@ function Crouton(config) {
|
|
|
14602
14602
|
|
|
14603
14603
|
self.rowClick = function(id) {
|
|
14604
14604
|
var map_marker = self.findMarkerById(id);
|
|
14605
|
+
if (!map_marker) return;
|
|
14605
14606
|
self.map.setCenter(map_marker.getPosition());
|
|
14606
14607
|
self.map.setZoom(17);
|
|
14607
14608
|
google.maps.event.trigger(map_marker, "click");
|
|
@@ -15560,7 +15561,7 @@ Crouton.prototype.render = function() {
|
|
|
15560
15561
|
dropdownCssClass: 'bmlt-drop'
|
|
15561
15562
|
});
|
|
15562
15563
|
|
|
15563
|
-
jQuery('[data-toggle="popover"]').popover();
|
|
15564
|
+
jQuery('[data-toggle="popover"]').popover().click(function(e) {e.preventDefault(); e.stopPropagation()});
|
|
15564
15565
|
jQuery('html').on('click', function (e) {
|
|
15565
15566
|
if (jQuery(e.target).data('toggle') !== 'popover') {
|
|
15566
15567
|
jQuery('[data-toggle="popover"]').popover('hide');
|
|
@@ -15753,6 +15754,7 @@ Crouton.prototype.initMap = function(callback) {
|
|
|
15753
15754
|
var bounds = new google.maps.LatLngBounds();
|
|
15754
15755
|
// We go through all the results, and get the "spread" from them.
|
|
15755
15756
|
for (var c = 0; c < self.meetingData.length; c++) {
|
|
15757
|
+
if (self.meetingData[c].venue_type == venueType.VIRTUAL) continue;
|
|
15756
15758
|
var lat = self.meetingData[c].latitude;
|
|
15757
15759
|
var lng = self.meetingData[c].longitude;
|
|
15758
15760
|
// We will set our minimum and maximum bounds.
|
|
@@ -15808,6 +15810,7 @@ Crouton.prototype.initMap = function(callback) {
|
|
|
15808
15810
|
// create an array of markers based on a given "locations" array.
|
|
15809
15811
|
// The map() method here has nothing to do with the Google Maps API.
|
|
15810
15812
|
self.meetingData.map(function (location, i) {
|
|
15813
|
+
if (location.venue_type == venueType.VIRTUAL) return;
|
|
15811
15814
|
var marker_html = '<dl><dt><strong>';
|
|
15812
15815
|
marker_html += location.meeting_name;
|
|
15813
15816
|
marker_html += '</strong></dt>';
|