@bmlt-enabled/croutonjs 3.19.3 → 3.19.5

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 CHANGED
@@ -16921,6 +16921,7 @@ function Crouton(config) {
16921
16921
  if (typeof window.croutonMap === 'undefined') {
16922
16922
  window.croutonMap = new MeetingMap(self.config);
16923
16923
  if (self.config['map_search']) self.searchMap();
16924
+ else self.meetingSearch();
16924
16925
  }
16925
16926
  else if (!self.config['map_search']) self.meetingSearch();
16926
16927
  }
@@ -18205,7 +18206,7 @@ function MeetingMap(inConfig) {
18205
18206
  showGeocodingDialog();
18206
18207
  }
18207
18208
  } else if (config.goto) {
18208
- gDelegate.callGeocoder(goto, filterMeetingsAndBounds);
18209
+ gDelegate.callGeocoder(config.goto, filterMeetingsAndBounds);
18209
18210
  }
18210
18211
  }
18211
18212
  function createCityHash(allMeetings) {
@@ -18234,12 +18235,11 @@ function MeetingMap(inConfig) {
18234
18235
  }
18235
18236
  }
18236
18237
  if (swipableModal) {
18237
- const body = document.getElementsByTagName("BODY")[0];
18238
+ const body = document.body;
18238
18239
  const scrollY = body.style.top;
18239
18240
  body.style.overflowX = g_overflowX;
18240
18241
  body.style.position = '';
18241
18242
  body.style.top = '';
18242
- body.style.width = '';
18243
18243
  window.scrollTo(0, parseInt(scrollY || '0') * -1);
18244
18244
  }
18245
18245
  }
@@ -18261,14 +18261,13 @@ function MeetingMap(inConfig) {
18261
18261
  if (dd) dd.style.display = "none";
18262
18262
  gDelegate.modalOn();
18263
18263
  if (swipableModal) {
18264
- const body = document.getElementsByTagName("BODY")[0];
18264
+ const body = document.body;
18265
18265
  g_overflowX = body.style.overflowX;
18266
18266
  const newTop = -window.scrollY+'px';
18267
- const newWidth = window.width+'px';
18268
18267
  body.style.overflowX = 'hidden';
18269
18268
  body.style.position = 'fixed';
18270
- body.style.top = newTop;
18271
- body.style.width = newWidth;
18269
+ body.style.width="100%";
18270
+ body.style.setProperty('top', newTop, 'important');
18272
18271
  }
18273
18272
  }
18274
18273
  function showFilterDialog(e) {