diff --git a/plugins_repo/3.0/Spot_Inspector.js b/plugins_repo/3.0/Spot_Inspector.js
index b9f3b58a..dcd9ea96 100644
--- a/plugins_repo/3.0/Spot_Inspector.js
+++ b/plugins_repo/3.0/Spot_Inspector.js
@@ -564,7 +564,7 @@ Spot_Inspector.loadImages = function (pathFormat) {
},
error: function (data) {
interfaceUtils.alert(
- data.responseText.replace("\n", "
"),
+ data.responseText.replace(/\n/g, "
"),
"Error on the plugin's server response",
);
},
@@ -781,7 +781,7 @@ Spot_Inspector.getMatrix = function (bbox, layers, markers, order) {
},
error: function (data) {
interfaceUtils.alert(
- data.responseText.replace("\n", "
"),
+ data.responseText.replace(/\n/g, "
"),
"Error on the plugin's server response",
);
},
diff --git a/plugins_repo/latest/Points2Regions.js b/plugins_repo/latest/Points2Regions.js
index 71e7d3fd..15d63f92 100644
--- a/plugins_repo/latest/Points2Regions.js
+++ b/plugins_repo/latest/Points2Regions.js
@@ -1097,7 +1097,7 @@ Points2Regions._api = function (endpoint, data, success, error) {
? error
: function (data) {
interfaceUtils.alert(
- data.responseText.replace("\n", "
"),
+ data.responseText.replace(/\n/g, "
"),
"Error on the plugin's server response:",
);
},
diff --git a/plugins_repo/latest/Spot_Inspector.js b/plugins_repo/latest/Spot_Inspector.js
index bb8405d3..efb100db 100644
--- a/plugins_repo/latest/Spot_Inspector.js
+++ b/plugins_repo/latest/Spot_Inspector.js
@@ -268,7 +268,7 @@ Spot_Inspector.loadImages = function (pathFormat) {
},
error: function (data) {
interfaceUtils.alert(
- data.responseText.replace("\n", "
"),
+ data.responseText.replace(/\n/g, "
"),
"Error on the plugin's server response",
);
},
diff --git a/tissuumaps/static/js/utils/pluginUtils.js b/tissuumaps/static/js/utils/pluginUtils.js
index d50a1a75..400adc46 100644
--- a/tissuumaps/static/js/utils/pluginUtils.js
+++ b/tissuumaps/static/js/utils/pluginUtils.js
@@ -80,7 +80,7 @@ pluginUtils.loadParameters = function (pluginID, pluginDiv, parameters) {
// do something, not critical.
},
error: (error) ? error : function (data) {
- interfaceUtils.alert(data.responseText.replace("\n","
"),"Error on the plugin's server response:");
+ interfaceUtils.alert(data.responseText.replace(/\n/g,"
"),"Error on the plugin's server response:");
},
});
}