mod-build 3.4.34 → 3.4.37--beta.1
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/gulp-tasks/templates.js
CHANGED
|
@@ -99,6 +99,21 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
99
99
|
}
|
|
100
100
|
return expression.replace(mask, newValues);
|
|
101
101
|
}
|
|
102
|
+
},
|
|
103
|
+
// It will take the json object & variable name to assign the object & return it in the script tag
|
|
104
|
+
{
|
|
105
|
+
name: 'jsonVarScriptTag',
|
|
106
|
+
fn: function(json, variable) {
|
|
107
|
+
var check = (typeof json === 'object') && (typeof variable === 'string' && variable);
|
|
108
|
+
return check ? '<script>' + 'var ' + variable + '=' + JSON.stringify(json) + '</script>' : '';
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
// It will take & return json object
|
|
112
|
+
{
|
|
113
|
+
name: 'json',
|
|
114
|
+
fn: function(json) {
|
|
115
|
+
return JSON.stringify(json);
|
|
116
|
+
}
|
|
102
117
|
}
|
|
103
118
|
];
|
|
104
119
|
|
package/package.json
CHANGED
|
@@ -37,8 +37,8 @@ var quoteFooterData = function(siteData) {
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
text: 'Do Not Sell My Personal Information',
|
|
40
|
-
anchor: '
|
|
41
|
-
modal:
|
|
40
|
+
anchor: 'uspi',
|
|
41
|
+
modal: true
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
links: [
|
package/src/scripts/qs-form.js
CHANGED
|
@@ -363,7 +363,7 @@ modForm.getDefaultQuadByDomain = function() {
|
|
|
363
363
|
};
|
|
364
364
|
|
|
365
365
|
if (page === 'quotes.improvementcenter.com') {
|
|
366
|
-
const
|
|
366
|
+
const service = window.location.pathname.replace(/\//g , "");
|
|
367
367
|
return defaultQuadLinkValue[page][service];
|
|
368
368
|
}
|
|
369
369
|
|
|
@@ -724,6 +724,8 @@ modForm.processQSFormSubmitSuccess = function(response, xhr) {
|
|
|
724
724
|
// eslint-disable-next-line camelcase
|
|
725
725
|
project_id: dataCaptureKey,
|
|
726
726
|
// eslint-disable-next-line camelcase
|
|
727
|
+
data_capture_key: dataCaptureKey,
|
|
728
|
+
// eslint-disable-next-line camelcase
|
|
727
729
|
form_path: this.opts.landingPage,
|
|
728
730
|
qsclickkey: clickKeyUUID
|
|
729
731
|
});
|