details:   https://code.openbravo.com/erp/devel/pi/rev/ceefd321f7ba
changeset: 16809:ceefd321f7ba
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Tue Jun 12 07:06:37 2012 -0400
summary:   Fixes issue 20731: JSlint errors have been fixed

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
 |  5 ++---
 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
 |  4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 5796e7fc1cc5 -r ceefd321f7ba 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Tue Jun 12 12:22:16 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Tue Jun 12 07:06:37 2012 -0400
@@ -271,8 +271,7 @@
   },
 
   convertUTCTimeToLocalTime: function (record, timeFields) {
-    var textField, fieldToDate, i, localHour
-    timeFieldsLength = timeFields.length,
+    var textField, fieldToDate, i, localHour, timeFieldsLength = 
timeFields.length,
         UTCOffset = isc.Time.getUTCHoursDisplayOffset(new Date());
     for (i = 0; i < timeFieldsLength; i++) {
       textField = record[timeFields[i]];
@@ -285,7 +284,7 @@
           localHour = localHour + 24;
         }
         // TODO: support time formats other than HH:mm:ss
-        record[timeFields[i]] = '' + localHour + ':' + 
fieldToDate.getMinutes() + ':' + fieldToDate.getSeconds();
+        record[timeFields[i]] = String(localHour) + ':' + 
fieldToDate.getMinutes() + ':' + fieldToDate.getSeconds();
       }
     }
   },
diff -r 5796e7fc1cc5 -r ceefd321f7ba 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Tue Jun 12 12:22:16 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Tue Jun 12 07:06:37 2012 -0400
@@ -249,7 +249,7 @@
   },
 
   convertUTCTimeToLocalTime: function (newData, timeFields) {
-    var textField, fieldToDate, i, j, localHour
+    var textField, fieldToDate, i, j, localHour,
     timeFieldsLength = timeFields.length,
         newDataLength = newData.length,
         UTCOffset = isc.Time.getUTCHoursDisplayOffset(new Date());
@@ -264,7 +264,7 @@
           } else if (localHour < 0) {
             localHour = localHour + 24;
           }
-          newData[j][timeFields[i]] = '' + localHour + ':' + 
fieldToDate.getMinutes() + ':' + fieldToDate.getSeconds();
+          newData[j][timeFields[i]] = String(localHour) + ':' + 
fieldToDate.getMinutes() + ':' + fieldToDate.getSeconds();
         }
       }
     }

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to