[+] BO: Add Jquery alerts for nice alert box

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11845 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-28 14:18:20 +00:00
parent b5e6f2cb75
commit 38086c5dc6
21 changed files with 342 additions and 49 deletions
+3 -3
View File
@@ -312,7 +312,7 @@ function delAccessory(id)
var nameCut = name.value.split('¤');
if (inputCut.length != nameCut.length)
return alert('Bad size');
return jAlert('Bad size');
// Reset all hidden fields
input.value = '';
@@ -641,7 +641,7 @@ function orderDeleteProduct(txtConfirm, txtExplain)
totalAvailable = totalQty - totalQtyReturn;
if (totalCancel > totalAvailable)
{
alert(txtConfirm + ' : \'' + ' ' + productName + '\' ! \n\n' + txtExplain + ' ('+ totalCancel + ' > ' + totalAvailable +')' + '\n ');
jAlert(txtConfirm + ' : \'' + ' ' + productName + '\' ! \n\n' + txtExplain + ' ('+ totalCancel + ' > ' + totalAvailable +')' + '\n ');
ret = false;
}
}
@@ -958,7 +958,7 @@ function doAdminAjax(data, success_func, error_func)
if (error_func)
return error_func(data);
alert("[TECHNICAL ERROR]");
jAlert("[TECHNICAL ERROR]");
}
});
}