noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 205/219: Accounting : error message if accoun


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 205/219: Accounting : error message if accounting is too large # Conflicts: # html/js/card.js
Date: Mon, 18 Dec 2017 13:23:03 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

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

    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 7a78dd2..936c470 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();



reply via email to

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