Fixed issue 26035: Proper style for not filter hits in 'OBTreeGrid'
authorDavid Baz Fayos <david.baz@openbravo.com>
Tue, 18 Mar 2014 20:52:07 +0100
changeset 22728 e7467e149bb0
parent 22726 2af4a1980fd3
child 22729 05acae86769b
Fixed issue 26035: Proper style for not filter hits in 'OBTreeGrid'
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-tree-grid-styles.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js	Tue Mar 18 20:35:56 2014 +0530
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-tree-grid.js	Tue Mar 18 20:52:07 2014 +0100
@@ -54,9 +54,9 @@
    */
   getCellCSSText: function (record, rowNum, colNum) {
     if (record.notFilterHit) {
-      return 'color:#606060;';
+      return OB.Styles.OBTreeGrid.cellCSSText_notFilterHit;
     } else {
-      return '';
+      return OB.Styles.OBTreeGrid.cellCSSText_filterHit;
     }
   },
 
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-tree-grid-styles.js	Tue Mar 18 20:35:56 2014 +0530
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-tree-grid-styles.js	Tue Mar 18 20:52:07 2014 +0100
@@ -20,6 +20,8 @@
 OB.Styles.OBTreeGrid = OB.Styles.OBTreeGrid || {};
 OB.Styles.OBTreeGrid.iconFolder = OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/tree-grid/iconFolder.png';
 OB.Styles.OBTreeGrid.iconNode = OB.Styles.skinsPath + 'Default/org.openbravo.client.application/images/tree-grid/iconNode.png';
+OB.Styles.OBTreeGrid.cellCSSText_filterHit = '';
+OB.Styles.OBTreeGrid.cellCSSText_notFilterHit = 'color: #C0C0C0;';
 
 isc.OBTreeGrid.addProperties({
   bodyStyleName: 'OBGridBody',