@bmlt-enabled/croutonjs 3.18.2 → 3.18.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-core.js CHANGED
@@ -14779,10 +14779,10 @@ var croutonDefaultTemplates = {
14779
14779
  "{{#isNotTemporarilyClosed this}}",
14780
14780
  " {{#unless (hasFormats 'VM' this)}}",
14781
14781
  " <div>",
14782
- " <a id='map-button' class='btn btn-primary btn-xs'",
14783
- " href='https://www.google.com/maps/search/?api=1&query={{this.latitude}},{{this.longitude}}&q={{this.latitude}},{{this.longitude}}'",
14784
- " target='_blank' rel='noopener noreferrer'>",
14785
- " <span class='glyphicon glyphicon-map-marker'></span> {{this.map_word}}</a>",
14782
+ " <a onclick='crouton.meetingModal({{this.id_bigint}})' id='map-button' class='btn btn-primary btn-xs'>",
14783
+ " <span class='glyphicon glyphicon-search' aria-hidden='true'></span>",
14784
+ " {{getWord 'meeting details'}}",
14785
+ " </a>",
14786
14786
  " </div>",
14787
14787
  " <div class='geo hide'>{{this.latitude}},{{this.longitude}}</div>",
14788
14788
  " {{/unless}}",
@@ -17251,7 +17251,10 @@ Crouton.prototype.render = function(doMeetingMap = false) {
17251
17251
  jQuery("#bmlt-map").removeClass("hide");
17252
17252
  }
17253
17253
  if (self.config['map_page'] && !doMeetingMap) {
17254
- croutonMap.initialize('byfield_embeddedMapPage', self.meetingData);
17254
+ if (self.meetingData.filter(m => m.venue_type != 2).length==0) {
17255
+ jQuery('#filterButton_embeddedMapPage').addClass('hide');
17256
+ }
17257
+ else croutonMap.initialize('byfield_embeddedMapPage', self.meetingData);
17255
17258
  }
17256
17259
  if (self.config['refresh_map']) {
17257
17260
  croutonMap.refreshMeetings(self.meetingData, true, true);