@bmlt-enabled/croutonjs 3.17.4 → 3.17.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-core.js +5 -0
- package/crouton-core.min.js +1 -1
- package/crouton.js +5 -0
- package/crouton.min.js +1 -1
- package/crouton.nojquery.js +5 -0
- package/crouton.nojquery.min.js +1 -1
- package/package.json +1 -1
package/crouton.js
CHANGED
|
@@ -14656,6 +14656,7 @@ function Crouton(config) {
|
|
|
14656
14656
|
force_timeformat_in_querystring: true, // Set to false to shorten generated meeting detail query strings
|
|
14657
14657
|
force_language_in_querystring: true, // Set to false to shorten generated meeting detail query strings
|
|
14658
14658
|
theme: "jack", // Allows for setting pre-packaged themes. Choices are listed here: https://github.com/bmlt-enabled/crouton/blob/master/croutonjs/dist/templates/themes
|
|
14659
|
+
missing_api_key: false, // Hide map is google not configured
|
|
14659
14660
|
meeting_data_template: croutonDefaultTemplates.meeting_data_template,
|
|
14660
14661
|
metadata_template: croutonDefaultTemplates.metadata_template,
|
|
14661
14662
|
observer_template: croutonDefaultTemplates.observer_template,
|
|
@@ -15492,6 +15493,10 @@ Crouton.prototype.doHandlebars = function() {
|
|
|
15492
15493
|
if (brothers) firstPart.after(...brothers);
|
|
15493
15494
|
}
|
|
15494
15495
|
if (mustDoMap) {
|
|
15496
|
+
if (self.config.missing_api_key) {
|
|
15497
|
+
jQuery("#bmlt-map").parent().remove();
|
|
15498
|
+
return;
|
|
15499
|
+
}
|
|
15495
15500
|
self.meetingData = enrichedMeetingData;
|
|
15496
15501
|
croutonMap.initialize(self.createBmltMapElement(),self.meetingData, self.formatsData, self.handlebarMapOptions);
|
|
15497
15502
|
jQuery("#bmlt-map").removeClass("hide");
|