From 16161ac5e0650d4e2038b3d4217358f9c3585297 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 14 Dec 2017 21:34:20 +0100 Subject: [PATCH] Accounting : error message if accounting is too large # Conflicts: # html/js/card.js --- html/js/card.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/html/js/card.js b/html/js/card.js index 7a78dd25d..936c470f3 100644 --- a/html/js/card.js +++ b/html/js/card.js @@ -729,6 +729,12 @@ function form_blank_card(obj) function save_card(obj) { var content=$(obj).ipopup; + var accounting= $(obj)['av_text25']; + var accounting= $(obj)['av_text5']; + if ( accounting.value.length > 40 ) { + smoke.alert('Poste comptable trop grand'); + return false; + } // Data must be taken here data=$('save_card').serialize(false); waiting_box();