@bmlt-enabled/croutonjs 3.12.7 → 3.14.0
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/build/{croutonjs-build1036-739cfc2f66208e1cd790991a0b11295f68dfc022.zip → croutonjs-build1097-9f685436d1b652dbf8765436bafce90b76672499.zip} +0 -0
- package/crouton.css +4 -0
- package/crouton.js +100 -78
- package/crouton.min.css +1 -1
- package/crouton.min.js +1 -1
- package/crouton.nojquery.js +100 -78
- package/crouton.nojquery.min.js +1 -1
- package/dist_croutonjs/github/croutonjs.zip +0 -0
- package/dist_croutonjs/s3/{croutonjs-build1036-739cfc2f66208e1cd790991a0b11295f68dfc022.zip → croutonjs-build1097-9f685436d1b652dbf8765436bafce90b76672499.zip} +0 -0
- package/package.json +1 -1
- package/templates/themes/asheboro.json +3 -0
- package/templates/themes/florida-nights.css +22 -0
- package/templates/themes/florida-nights.json +163 -0
- package/templates/themes/frog.css +22 -0
- package/templates/themes/frog.json +163 -0
- package/templates/themes/gold-coast.json +3 -0
- package/templates/themes/jack.json +3 -0
- package/templates/themes/kevin.css +6 -4
- package/templates/themes/kevin.json +3 -0
- package/templates/themes/lucy.json +3 -0
- package/templates/themes/one-nine.json +3 -0
- package/templates/themes/orange-monster.json +3 -0
- package/templates/themes/patrick.json +3 -0
- package/templates/themes/quebec.json +3 -0
- package/templates/themes/seattle-rain.json +3 -0
- package/templates/themes/sezf.json +3 -0
- package/templates/themes/truth.css +22 -0
- package/templates/themes/truth.json +163 -0
|
Binary file
|
package/crouton.css
CHANGED
package/crouton.js
CHANGED
|
@@ -13870,23 +13870,44 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
13870
13870
|
+ alias2((lookupProperty(helpers,"formatDataPointerFormats")||(depth0 && lookupProperty(depth0,"formatDataPointerFormats"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,"formats_expanded") : depth0),{"name":"formatDataPointerFormats","hash":{},"data":data,"loc":{"start":{"line":14,"column":18},"end":{"line":14,"column":68}}}))
|
|
13871
13871
|
+ "\">\n <td class=\"bmlt-column1\">\n <div class=\"bmlt-day\">"
|
|
13872
13872
|
+ alias2(alias1((depth0 != null ? lookupProperty(depth0,"formatted_day") : depth0), depth0))
|
|
13873
|
-
+ "</div>\n <div class=\"bmlt-time-2\">"
|
|
13874
|
-
+ alias2(alias1((depth0 != null ? lookupProperty(depth0,"start_time_formatted") : depth0), depth0))
|
|
13875
|
-
+ " - "
|
|
13876
|
-
+ alias2(alias1((depth0 != null ? lookupProperty(depth0,"end_time_formatted") : depth0), depth0))
|
|
13877
13873
|
+ "</div>\n"
|
|
13878
|
-
+ ((stack1 = lookupProperty(helpers,"
|
|
13874
|
+
+ ((stack1 = (lookupProperty(helpers,"ifEquals")||(depth0 && lookupProperty(depth0,"ifEquals"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,"duration_time") : depth0),"24:00:00",{"name":"ifEquals","hash":{},"fn":container.program(2, data, 0),"inverse":container.program(4, data, 0),"data":data,"loc":{"start":{"line":17,"column":3},"end":{"line":21,"column":16}}})) != null ? stack1 : "")
|
|
13875
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias3,(depth0 != null ? lookupProperty(depth0,"formats") : depth0),{"name":"if","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":22,"column":3},"end":{"line":49,"column":10}}})) != null ? stack1 : "")
|
|
13879
13876
|
+ " <div class=\"bmlt-comments\">"
|
|
13880
|
-
+ alias2((lookupProperty(helpers,"formatLink")||(depth0 && lookupProperty(depth0,"formatLink"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,"formatted_comments") : depth0),{"name":"formatLink","hash":{},"data":data,"loc":{"start":{"line":
|
|
13877
|
+
+ alias2((lookupProperty(helpers,"formatLink")||(depth0 && lookupProperty(depth0,"formatLink"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,"formatted_comments") : depth0),{"name":"formatLink","hash":{},"data":data,"loc":{"start":{"line":50,"column":30},"end":{"line":50,"column":68}}}))
|
|
13881
13878
|
+ "</div>\n <div class=\"bmlt-observer\">"
|
|
13882
13879
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"observerTemplate"),depth0,{"name":"observerTemplate","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
13883
13880
|
+ "</div>\n </td>\n <td class=\"bmlt-column2\">\n <div class=\"meeting-data-template\">"
|
|
13884
13881
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"meetingDataTemplate"),depth0,{"name":"meetingDataTemplate","data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
13885
13882
|
+ "</div>\n </td>\n <td class=\"bmlt-column3\">\n"
|
|
13886
13883
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"metaDataTemplate"),depth0,{"name":"metaDataTemplate","data":data,"indent":"\t\t\t","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
13887
|
-
+ ((stack1 = (lookupProperty(helpers,"canShare")||(depth0 && lookupProperty(depth0,"canShare"))||alias4).call(alias3,depth0,{"name":"canShare","hash":{},"fn":container.program(
|
|
13884
|
+
+ ((stack1 = (lookupProperty(helpers,"canShare")||(depth0 && lookupProperty(depth0,"canShare"))||alias4).call(alias3,depth0,{"name":"canShare","hash":{},"fn":container.program(9, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":58,"column":3},"end":{"line":60,"column":16}}})) != null ? stack1 : "")
|
|
13888
13885
|
+ " </td>\n </tr>\n";
|
|
13889
13886
|
},"2":function(container,depth0,helpers,partials,data) {
|
|
13887
|
+
var lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13888
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13889
|
+
return parent[propertyName];
|
|
13890
|
+
}
|
|
13891
|
+
return undefined
|
|
13892
|
+
};
|
|
13893
|
+
|
|
13894
|
+
return " <div class=\"bmlt-time-2\">"
|
|
13895
|
+
+ container.escapeExpression(container.lambda((depth0 != null ? lookupProperty(depth0,"start_time_formatted") : depth0), depth0))
|
|
13896
|
+
+ "</div>\n";
|
|
13897
|
+
},"4":function(container,depth0,helpers,partials,data) {
|
|
13898
|
+
var alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13899
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13900
|
+
return parent[propertyName];
|
|
13901
|
+
}
|
|
13902
|
+
return undefined
|
|
13903
|
+
};
|
|
13904
|
+
|
|
13905
|
+
return " <div class=\"bmlt-time-2\">"
|
|
13906
|
+
+ alias2(alias1((depth0 != null ? lookupProperty(depth0,"start_time_formatted") : depth0), depth0))
|
|
13907
|
+
+ " - "
|
|
13908
|
+
+ alias2(alias1((depth0 != null ? lookupProperty(depth0,"end_time_formatted") : depth0), depth0))
|
|
13909
|
+
+ "</div>\n";
|
|
13910
|
+
},"6":function(container,depth0,helpers,partials,data) {
|
|
13890
13911
|
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13891
13912
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13892
13913
|
return parent[propertyName];
|
|
@@ -13895,11 +13916,11 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
13895
13916
|
};
|
|
13896
13917
|
|
|
13897
13918
|
return " <a id=\"bmlt-formats\"\n class=\"btn btn-primary btn-xs\"\n title=\"\"\n data-html=\"true\"\n tabindex=\"0\"\n data-trigger=\"focus\"\n role=\"button\"\n data-toggle=\"popover\"\n data-original-title=\"\"\n data-content=\"\n <table class='bmlt_a_format table-bordered'>\n"
|
|
13898
|
-
+ ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"formats_expanded") : depth0),{"name":"each","hash":{},"fn":container.program(
|
|
13919
|
+
+ ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"formats_expanded") : depth0),{"name":"each","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":34,"column":24},"end":{"line":40,"column":33}}})) != null ? stack1 : "")
|
|
13899
13920
|
+ " </table>\">\n <span class=\"glyphicon glyphicon-search\"\n aria-hidden=\"true\"\n data-toggle=\"popover\"\n data-trigger=\"focus\"\n data-html=\"true\"\n role=\"button\"></span>"
|
|
13900
13921
|
+ container.escapeExpression(container.lambda((depth0 != null ? lookupProperty(depth0,"formats") : depth0), depth0))
|
|
13901
13922
|
+ "\n </a>\n";
|
|
13902
|
-
},"
|
|
13923
|
+
},"7":function(container,depth0,helpers,partials,data) {
|
|
13903
13924
|
var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13904
13925
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13905
13926
|
return parent[propertyName];
|
|
@@ -13908,13 +13929,13 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
13908
13929
|
};
|
|
13909
13930
|
|
|
13910
13931
|
return " <tr>\n <td class='formats_key'>"
|
|
13911
|
-
+ alias4(((helper = (helper = lookupProperty(helpers,"key") || (depth0 != null ? lookupProperty(depth0,"key") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"key","hash":{},"data":data,"loc":{"start":{"line":
|
|
13932
|
+
+ alias4(((helper = (helper = lookupProperty(helpers,"key") || (depth0 != null ? lookupProperty(depth0,"key") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"key","hash":{},"data":data,"loc":{"start":{"line":36,"column":52},"end":{"line":36,"column":59}}}) : helper)))
|
|
13912
13933
|
+ "</td>\n <td class='formats_name'>"
|
|
13913
|
-
+ alias4(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":
|
|
13934
|
+
+ alias4(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":37,"column":53},"end":{"line":37,"column":61}}}) : helper)))
|
|
13914
13935
|
+ "</td>\n <td class='formats_description'>"
|
|
13915
|
-
+ alias4(((helper = (helper = lookupProperty(helpers,"description") || (depth0 != null ? lookupProperty(depth0,"description") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"description","hash":{},"data":data,"loc":{"start":{"line":
|
|
13936
|
+
+ alias4(((helper = (helper = lookupProperty(helpers,"description") || (depth0 != null ? lookupProperty(depth0,"description") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"description","hash":{},"data":data,"loc":{"start":{"line":38,"column":60},"end":{"line":38,"column":75}}}) : helper)))
|
|
13916
13937
|
+ "</td>\n </tr>\n";
|
|
13917
|
-
},"
|
|
13938
|
+
},"9":function(container,depth0,helpers,partials,data) {
|
|
13918
13939
|
var stack1, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13919
13940
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13920
13941
|
return parent[propertyName];
|
|
@@ -13936,14 +13957,14 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
13936
13957
|
+ alias2(alias1((depth0 != null ? lookupProperty(depth0,"formatted_address") : depth0), depth0))
|
|
13937
13958
|
+ " "
|
|
13938
13959
|
+ alias2(alias1((depth0 != null ? lookupProperty(depth0,"formatted_location_info") : depth0), depth0))
|
|
13939
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias3,(depth0 != null ? lookupProperty(depth0,"virtual_meeting_additional_info") : depth0),{"name":"if","hash":{},"fn":container.program(
|
|
13960
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias3,(depth0 != null ? lookupProperty(depth0,"virtual_meeting_additional_info") : depth0),{"name":"if","hash":{},"fn":container.program(10, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":59,"column":320},"end":{"line":59,"column":412}}})) != null ? stack1 : "")
|
|
13940
13961
|
+ "\"), url: \""
|
|
13941
|
-
+ ((stack1 = (lookupProperty(helpers,"isVirtualOrHybrid")||(depth0 && lookupProperty(depth0,"isVirtualOrHybrid"))||alias4).call(alias3,depth0,{"name":"isVirtualOrHybrid","hash":{},"fn":container.program(
|
|
13942
|
-
+ ((stack1 = (lookupProperty(helpers,"isInPersonOrHybrid")||(depth0 && lookupProperty(depth0,"isInPersonOrHybrid"))||alias4).call(alias3,depth0,{"name":"isInPersonOrHybrid","hash":{},"fn":container.program(
|
|
13962
|
+
+ ((stack1 = (lookupProperty(helpers,"isVirtualOrHybrid")||(depth0 && lookupProperty(depth0,"isVirtualOrHybrid"))||alias4).call(alias3,depth0,{"name":"isVirtualOrHybrid","hash":{},"fn":container.program(12, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":59,"column":422},"end":{"line":59,"column":609}}})) != null ? stack1 : "")
|
|
13963
|
+
+ ((stack1 = (lookupProperty(helpers,"isInPersonOrHybrid")||(depth0 && lookupProperty(depth0,"isInPersonOrHybrid"))||alias4).call(alias3,depth0,{"name":"isInPersonOrHybrid","hash":{},"fn":container.program(17, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":59,"column":609},"end":{"line":59,"column":792}}})) != null ? stack1 : "")
|
|
13943
13964
|
+ "\"})'><span class=\"glyphicon glyphicon-share\"></span> "
|
|
13944
13965
|
+ alias2(alias1((depth0 != null ? lookupProperty(depth0,"share_word") : depth0), depth0))
|
|
13945
13966
|
+ "</a>\n";
|
|
13946
|
-
},"
|
|
13967
|
+
},"10":function(container,depth0,helpers,partials,data) {
|
|
13947
13968
|
var lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13948
13969
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13949
13970
|
return parent[propertyName];
|
|
@@ -13953,7 +13974,7 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
13953
13974
|
|
|
13954
13975
|
return " "
|
|
13955
13976
|
+ container.escapeExpression(container.lambda((depth0 != null ? lookupProperty(depth0,"virtual_meeting_additional_info") : depth0), depth0));
|
|
13956
|
-
},"
|
|
13977
|
+
},"12":function(container,depth0,helpers,partials,data) {
|
|
13957
13978
|
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13958
13979
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13959
13980
|
return parent[propertyName];
|
|
@@ -13961,9 +13982,9 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
13961
13982
|
return undefined
|
|
13962
13983
|
};
|
|
13963
13984
|
|
|
13964
|
-
return ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"virtual_meeting_link") : depth0),{"name":"if","hash":{},"fn":container.program(
|
|
13965
|
-
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"phone_meeting_number") : depth0),{"name":"if","hash":{},"fn":container.program(
|
|
13966
|
-
},"
|
|
13985
|
+
return ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"virtual_meeting_link") : depth0),{"name":"if","hash":{},"fn":container.program(13, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":59,"column":449},"end":{"line":59,"column":518}}})) != null ? stack1 : "")
|
|
13986
|
+
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,(depth0 != null ? lookupProperty(depth0,"phone_meeting_number") : depth0),{"name":"if","hash":{},"fn":container.program(15, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":59,"column":518},"end":{"line":59,"column":587}}})) != null ? stack1 : "");
|
|
13987
|
+
},"13":function(container,depth0,helpers,partials,data) {
|
|
13967
13988
|
var lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13968
13989
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13969
13990
|
return parent[propertyName];
|
|
@@ -13972,7 +13993,7 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
13972
13993
|
};
|
|
13973
13994
|
|
|
13974
13995
|
return container.escapeExpression(container.lambda((depth0 != null ? lookupProperty(depth0,"virtual_meeting_link") : depth0), depth0));
|
|
13975
|
-
},"
|
|
13996
|
+
},"15":function(container,depth0,helpers,partials,data) {
|
|
13976
13997
|
var lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13977
13998
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13978
13999
|
return parent[propertyName];
|
|
@@ -13981,7 +14002,7 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
13981
14002
|
};
|
|
13982
14003
|
|
|
13983
14004
|
return container.escapeExpression(container.lambda((depth0 != null ? lookupProperty(depth0,"phone_meeting_number") : depth0), depth0));
|
|
13984
|
-
},"
|
|
14005
|
+
},"17":function(container,depth0,helpers,partials,data) {
|
|
13985
14006
|
var alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
13986
14007
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
13987
14008
|
return parent[propertyName];
|
|
@@ -14005,7 +14026,7 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
14005
14026
|
return undefined
|
|
14006
14027
|
};
|
|
14007
14028
|
|
|
14008
|
-
return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":
|
|
14029
|
+
return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":63,"column":9}}})) != null ? stack1 : "");
|
|
14009
14030
|
},"usePartial":true,"useData":true});
|
|
14010
14031
|
this["hbs_Crouton"]["templates"]["weekdays"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
14011
14032
|
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
@@ -14275,7 +14296,7 @@ function Crouton(config) {
|
|
|
14275
14296
|
self.formatsData = mainMeetings['formats'];
|
|
14276
14297
|
|
|
14277
14298
|
if (extraMeetings) {
|
|
14278
|
-
self.meetingData.concat(extraMeetings['meetings']);
|
|
14299
|
+
self.meetingData = self.meetingData.concat(extraMeetings['meetings']);
|
|
14279
14300
|
}
|
|
14280
14301
|
self.mutex = false;
|
|
14281
14302
|
});
|
|
@@ -15078,7 +15099,6 @@ Crouton.prototype.mapSearchPanZoomMode = function() {
|
|
|
15078
15099
|
Crouton.prototype.mapSearchNearMeMode = function() {
|
|
15079
15100
|
var self = this;
|
|
15080
15101
|
self.mapSearchPanZoomMode();
|
|
15081
|
-
jQuery("#panzoom").prop("checked", true);
|
|
15082
15102
|
self.getCurrentLocation(function(position) {
|
|
15083
15103
|
self.searchByCoordinates(position.coords.latitude, position.coords.longitude);
|
|
15084
15104
|
});
|
|
@@ -15087,7 +15107,6 @@ Crouton.prototype.mapSearchNearMeMode = function() {
|
|
|
15087
15107
|
Crouton.prototype.mapSearchTextMode = function(location) {
|
|
15088
15108
|
var self = this;
|
|
15089
15109
|
self.mapSearchPanZoomMode();
|
|
15090
|
-
jQuery("#panzoom").prop("checked", true);
|
|
15091
15110
|
if (location !== undefined && location !== null && location !== "") {
|
|
15092
15111
|
self.geocoder.geocode({'address': location}, function (results, status) {
|
|
15093
15112
|
if (status === 'OK') {
|
|
@@ -15102,61 +15121,64 @@ Crouton.prototype.mapSearchTextMode = function(location) {
|
|
|
15102
15121
|
Crouton.prototype.renderMap = function() {
|
|
15103
15122
|
var self = this;
|
|
15104
15123
|
jQuery("#bmlt-tabs").before("<div id='bmlt-map' class='bmlt-map'></div>");
|
|
15105
|
-
|
|
15106
15124
|
self.geocoder = new google.maps.Geocoder();
|
|
15107
|
-
self.
|
|
15108
|
-
|
|
15109
|
-
|
|
15110
|
-
lat: self.config['map_search']['latitude'],
|
|
15111
|
-
lng: self.config['map_search']['longitude'],
|
|
15112
|
-
},
|
|
15113
|
-
mapTypeControl: false,
|
|
15114
|
-
});
|
|
15115
|
-
|
|
15116
|
-
var controlDiv = document.createElement('div');
|
|
15117
|
-
|
|
15118
|
-
// Set CSS for the control border
|
|
15119
|
-
var controlUI = document.createElement('div');
|
|
15120
|
-
controlUI.className = 'mapcontrolcontainer';
|
|
15121
|
-
controlUI.title = 'Click to recenter the map';
|
|
15122
|
-
controlDiv.appendChild(controlUI);
|
|
15123
|
-
|
|
15124
|
-
// Set CSS for the control interior
|
|
15125
|
-
var clickSearch = document.createElement('div');
|
|
15126
|
-
clickSearch.className = 'mapcontrols';
|
|
15127
|
-
clickSearch.innerHTML = '<label for="nearme" class="mapcontrolslabel"><input type="radio" id="nearme" name="mapcontrols"> ' + self.localization.getWord('near_me') + '</label><label for="textsearch" class="mapcontrolslabel"><input type="radio" id="textsearch" name="mapcontrols"> ' + self.localization.getWord('text_search') + '</label><label for="clicksearch" class="mapcontrolslabel"><input type="radio" id="clicksearch" name="mapcontrols"> ' + self.localization.getWord('click_search') + '</label><label for="panzoom" class="mapcontrolslabel"><input type="radio" id="panzoom" name="mapcontrols" checked> ' + self.localization.getWord('pan_and_zoom') + '</label>';
|
|
15128
|
-
controlUI.appendChild(clickSearch);
|
|
15129
|
-
controlDiv.index = 1;
|
|
15130
|
-
|
|
15131
|
-
google.maps.event.addDomListener(clickSearch, 'click', function() {
|
|
15132
|
-
var controlsButtonSelections = jQuery("input:radio[name='mapcontrols']:checked").attr("id");
|
|
15133
|
-
if (controlsButtonSelections === "textsearch") {
|
|
15134
|
-
self.mapSearchTextMode(prompt("Enter a location or postal code:"));
|
|
15135
|
-
} else if (controlsButtonSelections === "nearme") {
|
|
15136
|
-
self.mapSearchNearMeMode();
|
|
15137
|
-
} else if (controlsButtonSelections === "clicksearch") {
|
|
15138
|
-
self.mapSearchClickMode();
|
|
15139
|
-
} else if (controlsButtonSelections === "panzoom") {
|
|
15140
|
-
self.mapSearchPanZoomMode();
|
|
15125
|
+
jQuery.when(jQuery.getJSON(self.config['template_path'] + "/themes/" + self.config['theme'] + ".json").then(
|
|
15126
|
+
function (data, textStatus, jqXHR) {
|
|
15127
|
+
return self.config["theme_js"] = data["google_map_theme"];
|
|
15141
15128
|
}
|
|
15142
|
-
|
|
15129
|
+
)).then(function() {
|
|
15130
|
+
self.map = new google.maps.Map(document.getElementById('bmlt-map'), {
|
|
15131
|
+
zoom: self.config['map_search']['zoom'] || 10,
|
|
15132
|
+
center: {
|
|
15133
|
+
lat: self.config['map_search']['latitude'],
|
|
15134
|
+
lng: self.config['map_search']['longitude'],
|
|
15135
|
+
},
|
|
15136
|
+
mapTypeControl: false,
|
|
15137
|
+
styles: self.config["theme_js"]
|
|
15138
|
+
});
|
|
15143
15139
|
|
|
15144
|
-
|
|
15145
|
-
|
|
15146
|
-
|
|
15147
|
-
|
|
15148
|
-
|
|
15149
|
-
|
|
15150
|
-
|
|
15151
|
-
|
|
15140
|
+
var controlDiv = document.createElement('div');
|
|
15141
|
+
|
|
15142
|
+
// Set CSS for the control border
|
|
15143
|
+
var controlUI = document.createElement('div');
|
|
15144
|
+
controlUI.className = 'mapcontrolcontainer';
|
|
15145
|
+
controlUI.title = 'Click to recenter the map';
|
|
15146
|
+
controlDiv.appendChild(controlUI);
|
|
15147
|
+
|
|
15148
|
+
// Set CSS for the control interior
|
|
15149
|
+
var clickSearch = document.createElement('div');
|
|
15150
|
+
clickSearch.className = 'mapcontrols';
|
|
15151
|
+
clickSearch.innerHTML = '<label for="nearme" class="mapcontrolslabel"><input type="radio" id="nearme" name="mapcontrols"> ' + self.localization.getWord('near_me') + '</label><label for="textsearch" class="mapcontrolslabel"><input type="radio" id="textsearch" name="mapcontrols"> ' + self.localization.getWord('text_search') + '</label><label for="clicksearch" class="mapcontrolslabel"><input type="radio" id="clicksearch" name="mapcontrols"> ' + self.localization.getWord('click_search') + '</label>';
|
|
15152
|
+
controlUI.appendChild(clickSearch);
|
|
15153
|
+
controlDiv.index = 1;
|
|
15154
|
+
|
|
15155
|
+
google.maps.event.addDomListener(clickSearch, 'click', function () {
|
|
15156
|
+
var controlsButtonSelections = jQuery("input:radio[name='mapcontrols']:checked").attr("id");
|
|
15157
|
+
if (controlsButtonSelections === "textsearch") {
|
|
15158
|
+
self.mapSearchTextMode(prompt("Enter a location or postal code:"));
|
|
15159
|
+
} else if (controlsButtonSelections === "nearme") {
|
|
15160
|
+
self.mapSearchNearMeMode();
|
|
15161
|
+
} else if (controlsButtonSelections === "clicksearch") {
|
|
15162
|
+
self.mapSearchClickMode();
|
|
15163
|
+
}
|
|
15164
|
+
});
|
|
15152
15165
|
|
|
15153
|
-
|
|
15154
|
-
self.
|
|
15155
|
-
|
|
15156
|
-
|
|
15157
|
-
|
|
15158
|
-
|
|
15159
|
-
|
|
15166
|
+
self.map.controls[google.maps.ControlPosition.TOP_LEFT].push(controlDiv);
|
|
15167
|
+
self.map.addListener('click', function (data) {
|
|
15168
|
+
if (self.mapClickSearchMode) {
|
|
15169
|
+
self.mapSearchPanZoomMode();
|
|
15170
|
+
self.searchByCoordinates(data.latLng.lat(), data.latLng.lng());
|
|
15171
|
+
}
|
|
15172
|
+
});
|
|
15173
|
+
|
|
15174
|
+
if (self.config['map_search']['auto']) {
|
|
15175
|
+
self.mapSearchNearMeMode();
|
|
15176
|
+
} else if (self.config['map_search']['location'] !== undefined) {
|
|
15177
|
+
self.mapSearchTextMode(self.config['map_search']['location']);
|
|
15178
|
+
} else if (self.config['map_search']['coordinates_search']) {
|
|
15179
|
+
self.searchByCoordinates(self.config['map_search']['latitude'], self.config['map_search']['longitude']);
|
|
15180
|
+
}
|
|
15181
|
+
})
|
|
15160
15182
|
};
|
|
15161
15183
|
|
|
15162
15184
|
Crouton.prototype.initMap = function(callback) {
|