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