@bmlt-enabled/croutonjs 3.12.4 → 3.12.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/build/{croutonjs-build948-616b0b3a16e4f5ee9a7f7ad3e83475a888f9d211.zip → croutonjs-build967-cc52f58c310eb76a4a23abbb9ee24e6ff7fb1eba.zip} +0 -0
- package/crouton.js +23 -4
- package/crouton.min.js +1 -1
- package/crouton.nojquery.js +23 -4
- package/crouton.nojquery.min.js +1 -1
- package/dist_croutonjs/github/croutonjs.zip +0 -0
- package/dist_croutonjs/s3/{croutonjs-build948-616b0b3a16e4f5ee9a7f7ad3e83475a888f9d211.zip → croutonjs-build967-cc52f58c310eb76a4a23abbb9ee24e6ff7fb1eba.zip} +0 -0
- package/package.json +1 -1
|
Binary file
|
package/crouton.js
CHANGED
|
@@ -14485,6 +14485,13 @@ function Crouton(config) {
|
|
|
14485
14485
|
}
|
|
14486
14486
|
}
|
|
14487
14487
|
}
|
|
14488
|
+
|
|
14489
|
+
var serviceBodyInfo = self.getServiceBodyDetails(meetingData[m]['service_body_bigint'])
|
|
14490
|
+
meetingData[m]['serviceBodyUrl'] = serviceBodyInfo["url"];
|
|
14491
|
+
meetingData[m]['serviceBodyPhone'] = serviceBodyInfo["helpline"];
|
|
14492
|
+
meetingData[m]['serviceBodyName'] = serviceBodyInfo["name"];
|
|
14493
|
+
meetingData[m]['serviceBodyDescription'] = serviceBodyInfo["description"];
|
|
14494
|
+
|
|
14488
14495
|
meetings.push(meetingData[m])
|
|
14489
14496
|
}
|
|
14490
14497
|
|
|
@@ -14508,7 +14515,9 @@ function Crouton(config) {
|
|
|
14508
14515
|
Crouton.prototype.setConfig = function(config) {
|
|
14509
14516
|
var self = this;
|
|
14510
14517
|
for (var propertyName in config) {
|
|
14511
|
-
if (propertyName.indexOf("
|
|
14518
|
+
if (propertyName.indexOf("_template") > 0 && config[propertyName] === "") {
|
|
14519
|
+
continue;
|
|
14520
|
+
} else if (propertyName.indexOf("int_") === -1) {
|
|
14512
14521
|
if (config[propertyName] === "1" || config[propertyName] === 1) {
|
|
14513
14522
|
self.config[propertyName] = true;
|
|
14514
14523
|
} else if (config[propertyName] === "0" || config[propertyName] === 0) {
|
|
@@ -14606,6 +14615,16 @@ Crouton.prototype.serviceBodyNames = function(callback) {
|
|
|
14606
14615
|
});
|
|
14607
14616
|
};
|
|
14608
14617
|
|
|
14618
|
+
Crouton.prototype.getServiceBodyDetails = function(serviceBodyId) {
|
|
14619
|
+
var self = this;
|
|
14620
|
+
for (var s = 0; s < self.active_service_bodies.length; s++) {
|
|
14621
|
+
var service_body = self.active_service_bodies[s];
|
|
14622
|
+
if (self.active_service_bodies[s]['id'] === serviceBodyId) {
|
|
14623
|
+
return self.active_service_bodies[s];
|
|
14624
|
+
}
|
|
14625
|
+
}
|
|
14626
|
+
}
|
|
14627
|
+
|
|
14609
14628
|
Crouton.prototype.render = function(callback) {
|
|
14610
14629
|
var self = this;
|
|
14611
14630
|
self.lock(function() {
|
|
@@ -14634,16 +14653,16 @@ Crouton.prototype.render = function(callback) {
|
|
|
14634
14653
|
if (callback !== undefined) callback();
|
|
14635
14654
|
self.getMasterFormats(function() {
|
|
14636
14655
|
self.getServiceBodies(self.uniqueData['unique_service_bodies_ids'], function (service_bodies) {
|
|
14637
|
-
|
|
14656
|
+
self.active_service_bodies = [];
|
|
14638
14657
|
for (var i = 0; i < service_bodies.length; i++) {
|
|
14639
14658
|
for (var j = 0; j < self.uniqueData['unique_service_bodies_ids'].length; j++) {
|
|
14640
14659
|
if (service_bodies[i]["id"] === self.uniqueData['unique_service_bodies_ids'][j]) {
|
|
14641
|
-
active_service_bodies.push(service_bodies[i]);
|
|
14660
|
+
self.active_service_bodies.push(service_bodies[i]);
|
|
14642
14661
|
}
|
|
14643
14662
|
}
|
|
14644
14663
|
}
|
|
14645
14664
|
|
|
14646
|
-
self.uniqueData['areas'] = active_service_bodies.sortByKey('name');
|
|
14665
|
+
self.uniqueData['areas'] = self.active_service_bodies.sortByKey('name');
|
|
14647
14666
|
if (!jQuery.isEmptyObject(self.formatsData)) {
|
|
14648
14667
|
self.formatsData = self.formatsData.sortByKey('name_string');
|
|
14649
14668
|
}
|