From 0c210aa48ce28424d5a5209aeeedbf272af60397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sat, 3 Sep 2016 18:32:12 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20n=C3=A9gatif=20lors=20d'annulations/trans?= =?UTF-8?q?ferts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kfet/static/kfet/js/kfet.js | 7 +++++-- kfet/views.py | 12 +++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/kfet/static/kfet/js/kfet.js b/kfet/static/kfet/js/kfet.js index 1bdeef8e..0e2bad18 100644 --- a/kfet/static/kfet/js/kfet.js +++ b/kfet/static/kfet/js/kfet.js @@ -65,8 +65,11 @@ function getErrorsHtml(data) { content += '
  • '+data['errors']['missing_perms'][i]+'
  • '; content += ''; } - if ('negative' in data['errors']) - content += 'Autorisation de négatif requise'; + if ('negative' in data['errors']) { + for (var i=0; iAutorisation de négatif requise pour '+data['errors']['negative'][i]+''; + } + } if ('addcost' in data['errors']) { content += '