@bmlt-enabled/croutonjs 3.22.3 → 3.22.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 +19 -10
- package/crouton-gmaps.min.js +3 -3
- package/crouton-gmaps.min.js.map +1 -1
- package/crouton.js +19 -10
- package/crouton.min.js +3 -3
- package/crouton.min.js.map +1 -1
- package/crouton.nojquery.js +19 -10
- package/crouton.nojquery.min.js +3 -3
- package/crouton.nojquery.min.js.map +1 -1
- package/package.json +1 -1
package/crouton-gmaps.js
CHANGED
|
@@ -14849,6 +14849,20 @@ this["hbs_Crouton"]["templates"]["mapSearch"] = Handlebars.template({"1":functio
|
|
|
14849
14849
|
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"Back",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":33,"column":73},"end":{"line":33,"column":91}}}))
|
|
14850
14850
|
+ "</button>\n </div>\n </div>\n</div>";
|
|
14851
14851
|
},"useData":true});
|
|
14852
|
+
this["hbs_Crouton"]["templates"]["meetingDetailsButton"] = Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14853
|
+
var alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14854
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14855
|
+
return parent[propertyName];
|
|
14856
|
+
}
|
|
14857
|
+
return undefined
|
|
14858
|
+
};
|
|
14859
|
+
|
|
14860
|
+
return " <div>\n <a onclick='crouton.meetingModal("
|
|
14861
|
+
+ alias1(container.lambda((depth0 != null ? lookupProperty(depth0,"id_bigint") : depth0), depth0))
|
|
14862
|
+
+ ")' tabindex='0' href='#' id='map-button' class='btn btn-primary btn-xs'>\n <span class='glyphicon glyphicon-search' aria-hidden='true'></span>\n "
|
|
14863
|
+
+ alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"meeting details",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":4,"column":5},"end":{"line":4,"column":34}}}))
|
|
14864
|
+
+ "\n </a>\n </div>\n";
|
|
14865
|
+
},"useData":true});
|
|
14852
14866
|
this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
14853
14867
|
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14854
14868
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -15164,12 +15178,7 @@ var croutonDefaultTemplates = {
|
|
|
15164
15178
|
"{{/isVirtualOrHybrid}}",
|
|
15165
15179
|
"{{#isNotTemporarilyClosed this}}",
|
|
15166
15180
|
" {{#unless (hasFormats 'VM' this)}}",
|
|
15167
|
-
"
|
|
15168
|
-
" <a onclick='crouton.meetingModal({{this.id_bigint}})' tabindex='0' href='#' id='map-button' class='btn btn-primary btn-xs'>",
|
|
15169
|
-
" <span class='glyphicon glyphicon-search' aria-hidden='true'></span>",
|
|
15170
|
-
" {{getWord 'meeting details'}}",
|
|
15171
|
-
" </a>",
|
|
15172
|
-
" </div>",
|
|
15181
|
+
" {{> meetingDetailsButton this}}",
|
|
15173
15182
|
" {{/unless}}",
|
|
15174
15183
|
"{{/isNotTemporarilyClosed}}"
|
|
15175
15184
|
].join('\n'),
|
|
@@ -16772,7 +16781,6 @@ function Crouton(config) {
|
|
|
16772
16781
|
crouton_Handlebars.registerPartial('meetings', hbs_Crouton.templates['meetings']);
|
|
16773
16782
|
crouton_Handlebars.registerPartial('bydays', hbs_Crouton.templates['byday']);
|
|
16774
16783
|
crouton_Handlebars.registerPartial('formatPopup', hbs_Crouton.templates['formatPopup']);
|
|
16775
|
-
crouton_Handlebars.registerPartial('directionsButton', hbs_Crouton.templates['directionsButton']);
|
|
16776
16784
|
window.crouton = self;
|
|
16777
16785
|
croutonMap.initialize(self.createBmltMapElement(),self.meetingData,context,null,fitBounds,callback,self.config['noMap']);
|
|
16778
16786
|
}
|
|
@@ -16810,7 +16818,6 @@ function Crouton(config) {
|
|
|
16810
16818
|
crouton_Handlebars.registerPartial('header', hbs_Crouton.templates['header']);
|
|
16811
16819
|
crouton_Handlebars.registerPartial('byfields', hbs_Crouton.templates['byfield']);
|
|
16812
16820
|
crouton_Handlebars.registerPartial('formatPopup', hbs_Crouton.templates['formatPopup']);
|
|
16813
|
-
crouton_Handlebars.registerPartial('directionsButton', hbs_Crouton.templates['directionsButton']);
|
|
16814
16821
|
var template = hbs_Crouton.templates['main'];
|
|
16815
16822
|
jQuery(selector).html(template(context));
|
|
16816
16823
|
callback();
|
|
@@ -17279,10 +17286,10 @@ Crouton.prototype.doHandlebars = function() {
|
|
|
17279
17286
|
var customEnrichTemplate = crouton_Handlebars.compile('{{enrich this}}');
|
|
17280
17287
|
customEnrichTemplate(enrichedMeetingData[0]);
|
|
17281
17288
|
|
|
17282
|
-
self.handlebars(enrichedMeetingData[0], elements)
|
|
17289
|
+
self.handlebars(enrichedMeetingData[0], elements);
|
|
17290
|
+
jQuery('.get-directions-modal').on('click', openDirectionsModal);
|
|
17283
17291
|
});
|
|
17284
17292
|
});
|
|
17285
|
-
jQuery('.get-directions-modal').on('click', openDirectionsModal);
|
|
17286
17293
|
};
|
|
17287
17294
|
|
|
17288
17295
|
Crouton.prototype.meetingModal = function(meetingId) {
|
|
@@ -18029,6 +18036,8 @@ crouton_Handlebars.registerPartial('icsButton',
|
|
|
18029
18036
|
'<a href="{{BMLT2ics}}?meeting-id={{id_bigint}}" download="{{meeting_name}}.ics" id="share-button" class="btn btn-primary btn-xs" ><span class="glyphicon glyphicon-download-alt"></span> {{getWord "bmlt2ics"}}</a>');
|
|
18030
18037
|
crouton_Handlebars.registerPartial('offerIcsButton',
|
|
18031
18038
|
"{{#if (hasBMLT2ics)}}{{> icsButton}}<br/>{{/if}}");
|
|
18039
|
+
crouton_Handlebars.registerPartial('directionsButton', hbs_Crouton.templates['directionsButton']);
|
|
18040
|
+
crouton_Handlebars.registerPartial('meetingDetailsButton', hbs_Crouton.templates['meetingDetailsButton']);
|
|
18032
18041
|
function convertToPunyCode(str) {
|
|
18033
18042
|
return str !== undefined ? punycode.toASCII(str.toLowerCase()).replace(/\W|_/g, "-") : "";
|
|
18034
18043
|
}
|