@bmlt-enabled/croutonjs 4.1.3 → 4.1.4
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-gmaps.js +7 -7
- package/crouton-gmaps.min.js +5 -5
- package/crouton-gmaps.min.js.map +1 -1
- package/crouton.js +7 -3
- package/crouton.min.js +1 -1
- package/crouton.min.js.map +1 -1
- package/crouton.nojquery.js +7 -3
- package/crouton.nojquery.min.js +5 -5
- package/crouton.nojquery.min.js.map +1 -1
- package/package.json +1 -1
package/crouton-gmaps.js
CHANGED
|
@@ -15283,7 +15283,7 @@ function Crouton(config) {
|
|
|
15283
15283
|
self.currentView = "weekday";
|
|
15284
15284
|
self.distanceTabAllowed = false;
|
|
15285
15285
|
self.config = {
|
|
15286
|
-
version: '4.1.
|
|
15286
|
+
version: '4.1.4', // CroutonJS version for debugging
|
|
15287
15287
|
on_complete: null, // Javascript function to callback when data querying is completed.
|
|
15288
15288
|
root_server: null, // The root server to use.
|
|
15289
15289
|
placeholder_id: "bmlt-tabs", // The DOM id that will be used for rendering
|
|
@@ -16100,8 +16100,12 @@ function Crouton(config) {
|
|
|
16100
16100
|
});
|
|
16101
16101
|
}
|
|
16102
16102
|
const sorted = parent.children().sort(function (a, b) {
|
|
16103
|
-
const
|
|
16104
|
-
const
|
|
16103
|
+
const idA =parseFloat( jQuery(a).data('meetingid').replace("meeting-data-row-", ""));
|
|
16104
|
+
const idB =parseFloat( jQuery(b).data('meetingid').replace("meeting-data-row-", ""));
|
|
16105
|
+
const dataA = self.meetingData.find((m) => m.id_bigint==idA);
|
|
16106
|
+
const dataB = self.meetingData.find((m) => m.id_bigint==idB);
|
|
16107
|
+
const distanceA = dataA ? parseFloat(dataA['distance_in_km']) : Number.POSITIVE_INFINITY;
|
|
16108
|
+
const distanceB = dataB ? parseFloat(dataB['distance_in_km']) : Number.POSITIVE_INFINITY;
|
|
16105
16109
|
return (distanceA < distanceB) ? -1 : (distanceA > distanceB) ? 1 : 0;
|
|
16106
16110
|
});
|
|
16107
16111
|
parent.html(sorted);
|
|
@@ -18252,10 +18256,6 @@ function MapDelegate(in_config) {
|
|
|
18252
18256
|
var worldPoint = gMainMap.getProjection().fromLatLngToPoint(latLng);
|
|
18253
18257
|
return new google.maps.Point(worldPoint.x * scale, worldPoint.y * scale);
|
|
18254
18258
|
};
|
|
18255
|
-
function setZoom(filterMeetings) {
|
|
18256
|
-
if (!gMainMap) return;
|
|
18257
|
-
gMainMap.setZoom(getZoomAdjust(false,filterMeetings));
|
|
18258
|
-
}
|
|
18259
18259
|
function createClusterLayer() {
|
|
18260
18260
|
gIsClustering = true;
|
|
18261
18261
|
}
|