fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13097]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13097]
Date: Mon, 27 Apr 2015 23:45:51 +0000

Revision: 13097
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13097
Author:   nelson224
Date:     2015-04-27 23:45:50 +0000 (Mon, 27 Apr 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/js/portico/invoice.list_sub.js

Modified: branches/dev-syncromind/property/js/portico/invoice.list_sub.js
===================================================================
--- branches/dev-syncromind/property/js/portico/invoice.list_sub.js     
2015-04-27 23:45:07 UTC (rev 13096)
+++ branches/dev-syncromind/property/js/portico/invoice.list_sub.js     
2015-04-27 23:45:50 UTC (rev 13097)
@@ -85,10 +85,14 @@
                
                var data = {"values": values};
                JqueryPortico.execute_ajax(requestUrl, function(result){
-                       //var msg = result.message;
-                       document.getElementById("message").innerHTML = 
result.message[0].msg + "<br/>";
-
-                       //var error = result.error;
+                       
+                       if (typeof(result.message) !== 'undefined')
+                       {
+                               $.each(result.message, function (k, v) {
+                                       
document.getElementById("message").innerHTML = v.msg + "<br/>";
+                               });
+                       }
+                       
                        if (typeof(result.error) !== 'undefined')
                        {
                                $.each(result.error, function (k, v) {
@@ -96,6 +100,6 @@
                                });
                        }
                        oTable0.fnDraw();
-                       //document.getElementById("message").innerHTML += 
"<br/>" + result.message[0].msg;
+
                }, data, "POST", "JSON");
        }
\ No newline at end of file




reply via email to

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