noalyss-commit
[Top][All Lists]
Advanced

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

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


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

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

commit b6aaaeeb9319afa2af5623d8ff3670424fa771f4
Author: Dany De Bontridder <address@hidden>
Date:   Thu Dec 14 21:34:20 2017 +0100

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

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



reply via email to

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