noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/06: Accounting : error message if accounti


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/06: Accounting : error message if accounting is too large
Date: Wed, 20 Dec 2017 04:42:47 -0500 (EST)

sparkyx pushed a commit to annotated tag rel6919.7
in repository noalyss.

commit 163d9ce0585aa199bf7d7347920e0d4835d4eb30
Author: Dany De Bontridder <address@hidden>
Date:   Thu Dec 14 21:28:45 2017 +0100

    Accounting : error message if accounting is too large
---
 html/js/card.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/html/js/card.js b/html/js/card.js
index 8b4fa93..552f9c6 100644
--- a/html/js/card.js
+++ b/html/js/card.js
@@ -692,9 +692,13 @@ function form_blank_card(obj)
  */
 function save_card(obj)
 {
-    var content=$(obj).ipopup;
+    var accounting= $(obj)['av_text25'];
+    if ( accounting.value.length > 40 ) {
+      smoke.alert('Poste comptable trop grand');
+      return false;
+    }
     // Data must be taken here
-    data=$('save_card').serialize(false);
+    var data=$('save_card').serialize(false); var content=$(obj).ipopup;
     $(content).innerHTML=loading();
 
     var dossier=$('gDossier').value;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]