Fixes issue 17145: Column headers for alerts have shifted and are now incorrect
authorMartin Taal <martin.taal@openbravo.com>
Thu, 12 May 2011 17:51:53 +0200
changeset 12137 14155037e51d
parent 12136 fa4d6a6b3d7d
child 12138 ab9973f3e5b8
child 12148 d221ad9e329e
Fixes issue 17145: Column headers for alerts have shifted and are now incorrect
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js	Thu May 12 17:36:54 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/alert-management/ob-alert-grid.js	Thu May 12 17:51:53 2011 +0200
@@ -128,6 +128,11 @@
     // open the first time.
     this.setFields(this.gridFields);
     this.setSelectionAppearance('checkbox');
+    
+    // this extra call is needed to solve this issue:
+    https://issues.openbravo.com/view.php?id=17145
+    this.refreshFields();
+    
     this.sort('creationDate', 'descending');
 
     this.fetchData();
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-grid.js	Thu May 12 17:36:54 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-grid.js	Thu May 12 17:51:53 2011 +0200
@@ -23,6 +23,8 @@
 // grid implementations.
 isc.OBGrid.addProperties({
 
+  dragTrackerMode: 'none',
+  
   recordComponentPoolingMode: 'recycle',
   showRecordComponentsByCell: true,
   recordComponentPosition: 'within',