fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13098]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13098]
Date: Mon, 27 Apr 2015 23:46:18 +0000

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


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

Modified: branches/dev-syncromind/property/js/portico/invoice.index.js
===================================================================
--- branches/dev-syncromind/property/js/portico/invoice.index.js        
2015-04-27 23:45:50 UTC (rev 13097)
+++ branches/dev-syncromind/property/js/portico/invoice.index.js        
2015-04-27 23:46:17 UTC (rev 13098)
@@ -195,12 +195,15 @@
                
                var data = {"values": values};
                JqueryPortico.execute_ajax(requestUrl, function(result){
-                       //var msg = result.message;
+                       
                        document.getElementById("message").innerHTML = '';
-                       $.each(result.message, function (k, v) {
-                               document.getElementById("message").innerHTML += 
v.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) {
@@ -208,7 +211,7 @@
                                });
                        }
                        oTable.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]