From 53090b1a21cbe4239befdee727749fb4968d8d75 Mon Sep 17 00:00:00 2001 From: ynerant Date: Sun, 14 Feb 2021 11:49:05 +0100 Subject: [PATCH] Fix JS texts Signed-off-by: ynerant --- apps/note/static/note/js/consos.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/note/static/note/js/consos.js b/apps/note/static/note/js/consos.js index 3c16af98..b149dafe 100644 --- a/apps/note/static/note/js/consos.js +++ b/apps/note/static/note/js/consos.js @@ -223,13 +223,14 @@ function consume (source, source_alias, dest, quantity, amount, reason, type, ca const newBalance = source.balance - quantity * amount if (newBalance <= -5000) { addMsg(interpolate(gettext('Warning, the transaction from the note %s succeed, ' + - 'but the emitter note %s is very negative.', [source_alias, source_alias])), 'danger', 30000) + 'but the emitter note %s is very negative.'), [source_alias, source_alias]), 'danger', 30000) } else if (newBalance < 0) { addMsg(interpolate(gettext('Warning, the transaction from the note %s succeed, ' + - 'but the emitter note %s is negative.', [source_alias, source_alias])), 'warning', 30000) + 'but the emitter note %s is negative.'), [source_alias, source_alias]), 'warning', 30000) } if (source.membership && source.membership.date_end < new Date().toISOString()) { - addMsg(interpolate(gettext('Warning, the emitter note %s is no more a BDE member.', [source_alias])), 'danger', 30000) + addMsg(interpolate(gettext('Warning, the emitter note %s is no more a BDE member.'), [source_alias]), + 'danger', 30000) } } reset()