Related to issue 19730: The focus goes to the selected record after clicking on a tab title
authorAugusto Mauch <augusto.mauch@openbravo.com>
Wed, 15 Feb 2012 09:46:47 +0100
changeset 15496 fd30d7d69072
parent 15495 e319ba9996d6
child 15497 cde4b46243eb
Related to issue 19730: The focus goes to the selected record after clicking on a tab title
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Tue Feb 14 18:31:45 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js	Wed Feb 15 09:46:47 2012 +0100
@@ -637,6 +637,9 @@
     } else if (this.isEditingGrid && this.viewGrid.getEditForm() && this.viewGrid.getEditForm().getFocusItem()) {
       object = this.viewGrid.getEditForm();
       functionName = 'focus';
+    } else if (this.lastRecordSelected) {
+      object = this.viewGrid;
+      functionName = 'focus';
     } else if (this.lastFocusedItem) {
       object = this.lastFocusedItem;
       functionName = 'focusInItem';