Commit 7d101a27 authored by Vincent Le gallic's avatar Vincent Le gallic

Il restait des erreurs en alert()

parent 45ca7ccb
......@@ -521,7 +521,7 @@ function crediter_ou_retirer(credit) {
var cod = answer["retcode"];
}
catch(err) {
alert(msg);
display_error(msg);
return;
}
if (isSuccessCode(cod)) {
......@@ -529,7 +529,7 @@ function crediter_ou_retirer(credit) {
refreshHistorique();
}
else {
alert(answer["errmsg"]);
display_error(answer["errmsg"]);
}
}
}
......@@ -554,7 +554,7 @@ function display_error(text, error_list) {
if (text != "") {
alertdiv.appendChild(document.createTextNode(text));
}
if (error_list.length > 0) {
if (error_list) {
var liste = document.createElement("ul");
var elem;
for (var i = 0; i < error_list.length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment