Related to issue 25936: Sidestep Smartclient functions
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 22 May 2014 00:50:25 +0200
changeset 23090 f6338addf510
parent 23089 6395bf98637f
child 23091 33e1b63f6192
Related to issue 25936: Sidestep Smartclient functions
to ensure that standalone files work properly with other libraries - microfix
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) {