From 6c8843e5fc5cb1ff0a227fd8292721ad981f443c Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 3 Aug 2020 10:54:52 +0200 Subject: [PATCH] :bug: Reset transfer form even if the note has not enough money --- static/js/transfer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/transfer.js b/static/js/transfer.js index 70cf10dc..feca4a0d 100644 --- a/static/js/transfer.js +++ b/static/js/transfer.js @@ -296,6 +296,7 @@ $("#btn_transfer").click(function() { addMsg("Le transfert de " + pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name + " vers la note " + dest.name + " a échoué : Solde insuffisant", "danger", 10000); + reset(); }).fail(function (err) { addMsg("Le transfert de " + pretty_money(source.quantity * dest.quantity * amount) + " de la note " + source.name