mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
Free the transfer lock in case of transfer error
This commit is contained in:
parent
9f258e39b6
commit
5abb155287
@ -327,6 +327,7 @@ $("#btn_transfer").click(function() {
|
|||||||
addMsg("Le transfert de "
|
addMsg("Le transfert de "
|
||||||
+ pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name
|
+ pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name
|
||||||
+ " vers la note " + dest.name + " a échoué : " + errObj["non_field_errors"], "danger");
|
+ " vers la note " + dest.name + " a échoué : " + errObj["non_field_errors"], "danger");
|
||||||
|
LOCK = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -357,6 +358,7 @@ $("#btn_transfer").click(function() {
|
|||||||
addMsg("Le transfert de "
|
addMsg("Le transfert de "
|
||||||
+ pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name
|
+ pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name
|
||||||
+ " vers la note " + dest.name + " a échoué : " + error, "danger");
|
+ " vers la note " + dest.name + " a échoué : " + error, "danger");
|
||||||
|
LOCK = false;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -412,6 +414,7 @@ $("#btn_transfer").click(function() {
|
|||||||
if (!error)
|
if (!error)
|
||||||
error = err.responseText;
|
error = err.responseText;
|
||||||
addMsg("Le crédit/retrait a échoué : " + error, "danger", 10000);
|
addMsg("Le crédit/retrait a échoué : " + error, "danger", 10000);
|
||||||
|
LOCK = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user