noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 07/18: Accounting : error message if accounti


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 07/18: Accounting : error message if accounting is too large
Date: Sun, 22 Apr 2018 09:30:29 -0400 (EDT)

sparkyx pushed a commit to annotated tag rel6919-syn-180310
in repository noalyss.

commit 7779eceb0cdf3c258d2accd7263595f6fcfbcacc
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 91b952d..c8e7083 100644
--- a/html/js/card.js
+++ b/html/js/card.js
@@ -706,10 +706,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]