details:   https://code.openbravo.com/erp/devel/pi/rev/f6338addf510
changeset: 23090:f6338addf510
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Thu May 22 00:50:25 2014 +0200
summary:   Related to issue 25936: Sidestep Smartclient functions
to ensure that standalone files work properly with other libraries - microfix

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-date.js
 |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 6395bf98637f -r f6338addf510 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-date.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-date.js
   Thu May 22 00:17:51 2014 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-date.js
   Thu May 22 00:50:25 2014 +0200
@@ -122,10 +122,10 @@
     return OBDate;
   }
 
-  if (isc && isc.Time && isc.Time.PMIndicator) {
+  if (window.isc && isc.Time && isc.Time.PMIndicator) {
     PMIndicator = isc.Time.PMIndicator;
   }
-  if (isc && isc.Time && isc.Time.AMIndicator) {
+  if (window.isc && isc.Time && isc.Time.AMIndicator) {
     AMIndicator = isc.Time.AMIndicator;
   }
 
@@ -250,10 +250,10 @@
     return null;
   }
 
-  if (isc && isc.Time && isc.Time.PMIndicator) {
+  if (window.isc && isc.Time && isc.Time.PMIndicator) {
     PMIndicator = isc.Time.PMIndicator;
   }
-  if (isc && isc.Time && isc.Time.AMIndicator) {
+  if (window.isc && isc.Time && isc.Time.AMIndicator) {
     AMIndicator = isc.Time.AMIndicator;
   }
   if (dateFormat.toUpperCase().lastIndexOf(' A') !== -1 && 
dateFormat.toUpperCase().lastIndexOf(' A') === dateFormat.length - 2) {

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to