// Added addlashes for some js messages

This commit is contained in:
Damien Metzger
2013-06-26 15:52:40 +02:00
parent 19ee2c953f
commit 7427efdb6f
6 changed files with 50 additions and 54 deletions
+2 -4
View File
@@ -470,8 +470,7 @@ function init()
cache: false,
dataType: 'json',
data : query,
success : function(data)
{
success : function(data) {
if (data.result)
{
go = false;
@@ -491,8 +490,7 @@ function init()
else
jAlert(data.error);
},
error : function(XMLHttpRequest, textStatus, errorThrown)
{
error : function(XMLHttpRequest, textStatus, errorThrown) {
jAlert("Impossible to add the product to the cart.\n\ntextStatus: '" + textStatus + "'\nerrorThrown: '" + errorThrown + "'\nresponseText:\n" + XMLHttpRequest.responseText);
}
});