fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15264] add try/catch in common.js


From: sigurdne
Subject: [Fmsystem-commits] [15264] add try/catch in common.js
Date: Tue, 7 Jun 2016 11:12:45 +0000 (UTC)

Revision: 15264
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15264
Author:   sigurdne
Date:     2016-06-07 11:12:45 +0000 (Tue, 07 Jun 2016)
Log Message:
-----------
add try/catch in common.js

Modified Paths:
--------------
    trunk/phpgwapi/js/jquery/common.js

Modified: trunk/phpgwapi/js/jquery/common.js
===================================================================
--- trunk/phpgwapi/js/jquery/common.js  2016-06-07 10:59:33 UTC (rev 15263)
+++ trunk/phpgwapi/js/jquery/common.js  2016-06-07 11:12:45 UTC (rev 15264)
@@ -381,14 +381,21 @@
                ajax: ajax_def,
                fnServerParams: function (aoData)
                {                       
-                       if (!$.isEmptyObject(eval('paramsTable' + 
container.substr(container.length -1, 1))))
-                       {       
-                               $.each(eval('paramsTable' + 
container.substr(container.length -1, 1)), function (k, v)
+                       try
+                       {
+                               if (!$.isEmptyObject(eval('paramsTable' + 
container.substr(container.length -1, 1))))
                                {
-                                       aoData[k] = v;
-                               });
+                                       $.each(eval('paramsTable' + 
container.substr(container.length -1, 1)), function (k, v)
+                                       {
+                                               aoData[k] = v;
+                                       });
+                               }
                        }
+                       catch (err)
+                       {
 
+                       }
+
                        if (typeof (aoData.order) != 'undefined')
                        {
                                var column = aoData.order[0].column;




reply via email to

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