Related to issue 18291: 'OBDateItem' now inverts its alignment in [RTL] mode
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 26 Apr 2012 23:23:59 +0200
changeset 16348 2e5dbb5179e6
parent 16347 2132d66191f9
child 16349 ccc808d2c44f
Related to issue 18291: 'OBDateItem' now inverts its alignment in [RTL] mode
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-rtl-styles.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js	Thu Apr 26 20:22:18 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js	Thu Apr 26 23:23:59 2012 +0200
@@ -47,8 +47,6 @@
   validateOnChange: false,
   stopOnError: false,
 
-  textAlign: 'left',
-
   dateParts: [],
 
   doInit: function () {
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Thu Apr 26 20:22:18 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-form-styles.js	Thu Apr 26 23:23:59 2012 +0200
@@ -278,6 +278,9 @@
 };
 
 isc.OBDateItem.addProperties(isc.addProperties({}, OB.Styles.OBFormField.DefaultDateInput));
+isc.OBDateItem.addProperties({
+  textAlign: 'left'
+});
 
 isc.OBDateTimeItem.addProperties(isc.addProperties({}, OB.Styles.OBFormField.DefaultDateInput));
 
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-rtl-styles.js	Thu Apr 26 20:22:18 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-rtl-styles.js	Thu Apr 26 23:23:59 2012 +0200
@@ -30,6 +30,10 @@
 
 /* ob-form-styles.js */
 
+isc.OBDateItem.addProperties({
+  textAlign: 'right'
+});
+
 isc.OBSectionItemButton.changeDefaults('backgroundDefaults', {
   icon: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/form/sectionItem-ico-RTL.png'
 });