Related to issue 19730: Removes fix because a defect was detected
authorAugusto Mauch <augusto.mauch@openbravo.com>
Tue, 14 Feb 2012 16:15:19 +0100
changeset 15494 215fbb471eaa
parent 15493 cdcbb0c7f479
child 15495 e319ba9996d6
Related to issue 19730: Removes fix because a defect was detected
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
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-grid.js	Tue Feb 14 15:10:03 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js	Tue Feb 14 16:15:19 2012 +0100
@@ -128,7 +128,7 @@
       for (i = 0; i < length; i++) {
         item = items[i];
         // The first filterable item (editorType!=='StaticTextItem') should be focused
-        if (item.getCanFocus() && !item.isDisabled() && item.editorType!=='StaticTextItem') {
+        if (item.getCanFocus() && !item.isDisabled()) {
           this.focusInFilterEditor(item);
           return true;
         }
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Feb 14 15:10:03 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Tue Feb 14 16:15:19 2012 +0100
@@ -500,12 +500,7 @@
 
       this.deleteSelectedParentRecordFilter(localState);
 
-      this.Super('setViewState', ['(' + isc.Comm.serialize(localState, false) + ')']);
-      
-      // Focus on the first filterable item
-      if (this.view.isActiveView()) {
-        this.focusInFirstFilterEditor();  
-      }      
+      this.Super('setViewState', ['(' + isc.Comm.serialize(localState, false) + ')']);     
     }
 
     if (localState.noFilterClause) {