Related to issue 18290: [PNE] 'Add New' button is now properly shown in [RTL]
authorDavid Baz Fayos <david.baz@openbravo.com>
Thu, 26 Apr 2012 15:38:02 +0200
changeset 16344 74821bc57188
parent 16343 d91e074520f2
child 16345 f3e6950011bd
Related to issue 18290: [PNE] 'Add New' button is now properly shown in [RTL]
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-process-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/process/ob-pick-and-execute-view.js	Thu Apr 26 12:32:56 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-pick-and-execute-view.js	Thu Apr 26 15:38:02 2012 +0200
@@ -155,7 +155,7 @@
     this.items = [this.viewGrid, isc.HLayout.create({
       height: 1,
       overflow: 'visible',
-      align: 'left',
+      align: OB.Styles.Process.PickAndExecute.addNewButtonAlign,
       width: '100%',
       visibility: (this.addNewButton ? 'visible' : 'hidden'),
       members: (this.addNewButton ? [this.addNewButton] : [])
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-process-styles.js	Thu Apr 26 12:32:56 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-process-styles.js	Thu Apr 26 15:38:02 2012 +0200
@@ -24,5 +24,6 @@
   gridCellHeight: 25,
   iconPinSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/process/iconPin.png',
   iconDeleteSrc: OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/process/iconDelete.png',
+  addNewButtonAlign: 'left',
   buttonLayoutHeight: 80
 };
\ No newline at end of file
--- 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 12:32:56 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 15:38:02 2012 +0200
@@ -65,6 +65,11 @@
 OB.Styles.Personalization.Menu.itemIcon = OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/personalization/iconSelectedView-RTL.png';
 
 
+/* ob-process-styles.js */
+
+OB.Styles.Process.PickAndExecute.addNewButtonAlign = 'right';
+
+
 /* ob-statusbar-styles.js */
 
 isc.OBStatusBarLeftBar.addProperties({