@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.nojquery.js
CHANGED
|
@@ -14846,6 +14846,20 @@ this["hbs_Crouton"]["templates"]["mapSearch"] = Handlebars.template({"1":functio
|
|
|
14846
14846
|
+ 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}}}))
|
|
14847
14847
|
+ "</button>\n </div>\n </div>\n</div>";
|
|
14848
14848
|
},"useData":true});
|
|
14849
|
+
this["hbs_Crouton"]["templates"]["meetingDetailsButton"] = Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14850
|
+
var alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14851
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14852
|
+
return parent[propertyName];
|
|
14853
|
+
}
|
|
14854
|
+
return undefined
|
|
14855
|
+
};
|
|
14856
|
+
|
|
14857
|
+
return " <div>\n <a onclick='crouton.meetingModal("
|
|
14858
|
+
+ alias1(container.lambda((depth0 != null ? lookupProperty(depth0,"id_bigint") : depth0), depth0))
|
|
14859
|
+
+ ")' tabindex='0' href='#' id='map-button' class='btn btn-primary btn-xs'>\n <span class='glyphicon glyphicon-search' aria-hidden='true'></span>\n "
|
|
14860
|
+
+ 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}}}))
|
|
14861
|
+
+ "\n </a>\n </div>\n";
|
|
14862
|
+
},"useData":true});
|
|
14849
14863
|
this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
14850
14864
|
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14851
14865
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -15161,12 +15175,7 @@ var croutonDefaultTemplates = {
|
|
|
15161
15175
|
"{{/isVirtualOrHybrid}}",
|
|
15162
15176
|
"{{#isNotTemporarilyClosed this}}",
|
|
15163
15177
|
" {{#unless (hasFormats 'VM' this)}}",
|
|
15164
|
-
"
|
|
15165
|
-
" <a onclick='crouton.meetingModal({{this.id_bigint}})' tabindex='0' href='#' id='map-button' class='btn btn-primary btn-xs'>",
|
|
15166
|
-
" <span class='glyphicon glyphicon-search' aria-hidden='true'></span>",
|
|
15167
|
-
" {{getWord 'meeting details'}}",
|
|
15168
|
-
" </a>",
|
|
15169
|
-
" </div>",
|
|
15178
|
+
" {{> meetingDetailsButton this}}",
|
|
15170
15179
|
" {{/unless}}",
|
|
15171
15180
|
"{{/isNotTemporarilyClosed}}"
|
|
15172
15181
|
].join('\n'),
|
|
@@ -16769,7 +16778,6 @@ function Crouton(config) {
|
|
|
16769
16778
|
crouton_Handlebars.registerPartial('meetings', hbs_Crouton.templates['meetings']);
|
|
16770
16779
|
crouton_Handlebars.registerPartial('bydays', hbs_Crouton.templates['byday']);
|
|
16771
16780
|
crouton_Handlebars.registerPartial('formatPopup', hbs_Crouton.templates['formatPopup']);
|
|
16772
|
-
crouton_Handlebars.registerPartial('directionsButton', hbs_Crouton.templates['directionsButton']);
|
|
16773
16781
|
window.crouton = self;
|
|
16774
16782
|
croutonMap.initialize(self.createBmltMapElement(),self.meetingData,context,null,fitBounds,callback,self.config['noMap']);
|
|
16775
16783
|
}
|
|
@@ -16807,7 +16815,6 @@ function Crouton(config) {
|
|
|
16807
16815
|
crouton_Handlebars.registerPartial('header', hbs_Crouton.templates['header']);
|
|
16808
16816
|
crouton_Handlebars.registerPartial('byfields', hbs_Crouton.templates['byfield']);
|
|
16809
16817
|
crouton_Handlebars.registerPartial('formatPopup', hbs_Crouton.templates['formatPopup']);
|
|
16810
|
-
crouton_Handlebars.registerPartial('directionsButton', hbs_Crouton.templates['directionsButton']);
|
|
16811
16818
|
var template = hbs_Crouton.templates['main'];
|
|
16812
16819
|
jQuery(selector).html(template(context));
|
|
16813
16820
|
callback();
|
|
@@ -17276,10 +17283,10 @@ Crouton.prototype.doHandlebars = function() {
|
|
|
17276
17283
|
var customEnrichTemplate = crouton_Handlebars.compile('{{enrich this}}');
|
|
17277
17284
|
customEnrichTemplate(enrichedMeetingData[0]);
|
|
17278
17285
|
|
|
17279
|
-
self.handlebars(enrichedMeetingData[0], elements)
|
|
17286
|
+
self.handlebars(enrichedMeetingData[0], elements);
|
|
17287
|
+
jQuery('.get-directions-modal').on('click', openDirectionsModal);
|
|
17280
17288
|
});
|
|
17281
17289
|
});
|
|
17282
|
-
jQuery('.get-directions-modal').on('click', openDirectionsModal);
|
|
17283
17290
|
};
|
|
17284
17291
|
|
|
17285
17292
|
Crouton.prototype.meetingModal = function(meetingId) {
|
|
@@ -18026,6 +18033,8 @@ crouton_Handlebars.registerPartial('icsButton',
|
|
|
18026
18033
|
'<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>');
|
|
18027
18034
|
crouton_Handlebars.registerPartial('offerIcsButton',
|
|
18028
18035
|
"{{#if (hasBMLT2ics)}}{{> icsButton}}<br/>{{/if}}");
|
|
18036
|
+
crouton_Handlebars.registerPartial('directionsButton', hbs_Crouton.templates['directionsButton']);
|
|
18037
|
+
crouton_Handlebars.registerPartial('meetingDetailsButton', hbs_Crouton.templates['meetingDetailsButton']);
|
|
18029
18038
|
function convertToPunyCode(str) {
|
|
18030
18039
|
return str !== undefined ? punycode.toASCII(str.toLowerCase()).replace(/\W|_/g, "-") : "";
|
|
18031
18040
|
}
|