|
@@ -2253,8 +2253,18 @@ function saveTextAsFile() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
ReadParameterAll();
|
|
ReadParameterAll();
|
|
|
- if (document.getElementsByClassName("invalid-input").length > 0) {
|
|
|
|
|
- firework.launch("Settings cannot be saved. Please check your entries!", 'danger', 30000);
|
|
|
|
|
|
|
+ const invalidInputs = Array.from(document.getElementsByClassName("invalid-input"));
|
|
|
|
|
+ if (invalidInputs.length > 0) {
|
|
|
|
|
+ const invalidDetails = invalidInputs.slice(0, 8).map(function (element) {
|
|
|
|
|
+ return (element.id || element.name || element.tagName) + "=" +
|
|
|
|
|
+ JSON.stringify(typeof element.value === "undefined" ? "" : element.value);
|
|
|
|
|
+ });
|
|
|
|
|
+ console.warn("Configuration save blocked by invalid fields:", invalidDetails);
|
|
|
|
|
+ firework.launch(
|
|
|
|
|
+ "Settings cannot be saved. Invalid field(s): " + invalidDetails.join(", "),
|
|
|
|
|
+ 'danger',
|
|
|
|
|
+ 30000
|
|
|
|
|
+ );
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|