@4site/engrid-scripts 0.22.4 → 0.22.6
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/dist/engrid.js +2 -2
- package/dist/translate-fields.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/engrid.js
CHANGED
|
@@ -335,8 +335,8 @@ export class ENGrid {
|
|
|
335
335
|
if (!submit)
|
|
336
336
|
return false;
|
|
337
337
|
let submitButtonProcessingHTML = `<span class='loader-wrapper'><span class='loader loader-quart'></span><span class='submit-button-text-wrapper'>${label}</span></span>`;
|
|
338
|
-
if (
|
|
339
|
-
// If
|
|
338
|
+
if (submit.innerHTML.includes("loader-wrapper")) {
|
|
339
|
+
// If we are already processing, don't override the originalText again
|
|
340
340
|
return false;
|
|
341
341
|
}
|
|
342
342
|
submit.dataset.originalText = submit.innerHTML;
|
package/dist/translate-fields.js
CHANGED
|
@@ -26,7 +26,7 @@ export class TranslateFields {
|
|
|
26
26
|
}
|
|
27
27
|
//Storing these values on load so we can set them back after the translation/swap.
|
|
28
28
|
let countryAndStateValuesOnLoad = {};
|
|
29
|
-
if (this.countriesSelect) {
|
|
29
|
+
if (this.countriesSelect && this.countriesSelect.length > 0) {
|
|
30
30
|
this.countriesSelect.forEach((select) => {
|
|
31
31
|
select.addEventListener("change", this.translateFields.bind(this, select.name));
|
|
32
32
|
if (select.value) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AppVersion = "0.22.
|
|
1
|
+
export declare const AppVersion = "0.22.6";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AppVersion = "0.22.
|
|
1
|
+
export const AppVersion = "0.22.6";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4site/engrid-scripts",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.6",
|
|
4
4
|
"description": "Scripts for the ENGRID Project",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"strongly-typed-events": "^2.0.9"
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/4site-interactive-studios/engrid#readme",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "f2e2bca46cba0e668563549a380575ceb5c1ed1a",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"nodemon": "^2.0.20"
|
|
31
31
|
}
|