Related to issue 18291: Flipped 'new selectors in classic windows' search-icon in [RTL] mode
authorDavid Baz Fayos <david.baz@openbravo.com>
Mon, 30 Apr 2012 16:40:02 +0200
changeset 16354 67e1b330d065
parent 16353 3c048f3d7822
child 16355 50c1cde8bd24
Related to issue 18291: Flipped 'new selectors in classic windows' search-icon in [RTL] mode
modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-widget.js
modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL.png
modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Disabled.png
modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Down.png
modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Focused.png
modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Focused_Down.png
modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Focused_Over.png
modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Over.png
--- a/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-widget.js	Mon Apr 30 14:51:50 2012 +0200
+++ b/modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-widget.js	Mon Apr 30 16:40:02 2012 +0200
@@ -35,6 +35,16 @@
 // the dependent modules js file needs to be passes as a static
 // resource in the GlobalResources provided by the modules
 // componentprovider.
+if (!isc.Page.isRTL()) {
+  isc.OBSelectorWidget.addClassProperties({
+    fieldPickerIconSrc: '[SKINIMG]../../org.openbravo.userinterface.selector/images/selectorButton.png'
+  });
+} else {
+  isc.OBSelectorWidget.addClassProperties({
+    fieldPickerIconSrc: '[SKINIMG]../../org.openbravo.userinterface.selector/images/selectorButton-RTL.png'
+  });
+}
+
 isc.OBSelectorWidget.addClassProperties({
   styling: {
 
@@ -55,7 +65,7 @@
 
     // ** {{{ fieldPicker properties }}} **
     // fieldPicker icon is shown next to the field in the form
-    fieldPickerIconSrc: '[SKINIMG]../../org.openbravo.userinterface.selector/images/selectorButton.png',
+    //fieldPickerIconSrc: '[SKINIMG]../../org.openbravo.userinterface.selector/images/selectorButton.png', //Set before to allow RTL operation
     fieldPickerIconWidth: 27,
     fieldPickerIconHeight: 17,
     fieldPickerIconHSpace: 0,
@@ -585,7 +595,7 @@
         selector: this,
         showFocused: true,
         showOver: true,
-        src: isc.OBSelectorWidget.styling.fieldPickerIconSrc,
+        src: isc.OBSelectorWidget.fieldPickerIconSrc,
         width: isc.OBSelectorWidget.styling.fieldPickerIconWidth,
         height: isc.OBSelectorWidget.styling.fieldPickerIconHeight,
         hspace: isc.OBSelectorWidget.styling.fieldPickerIconHSpace,
Binary file modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL.png has changed
Binary file modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Disabled.png has changed
Binary file modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Down.png has changed
Binary file modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Focused.png has changed
Binary file modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Focused_Down.png has changed
Binary file modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Focused_Over.png has changed
Binary file modules/org.openbravo.userinterface.skin.250to300Comp/web/org.openbravo.userinterface.smartclient/openbravo/skins/250to300Comp/org.openbravo.userinterface.selector/images/selectorButton-RTL_Over.png has changed