Fixes issue 22123: UI doesnt lose the focus when entering filter in grid mode
authorAugusto Mauch <augusto.mauch@openbravo.com>
Thu, 31 Jan 2013 16:10:28 +0100
changeset 19533 8e1a1a70be0d
parent 19532 fb881e8712be
child 19534 ccd53c8a7517
Fixes issue 22123: UI doesnt lose the focus when entering filter in grid mode

At some point, the whole grid (filters included) were being redrawn, when only the body of the grid needed to be redrawn. If the focus was in the grid filter, it got lost. This issue has been fixed by redrawing only the body of the grid.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Thu Jan 31 12:22:19 2013 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Thu Jan 31 16:10:28 2013 +0100
@@ -2056,7 +2056,7 @@
       }
     }
     if (oldMessage !== this.emptyMessage) {
-      this.markForRedraw();
+      this.body.markForRedraw();
     }
   },