details: https://code.openbravo.com/erp/devel/pi/rev/cde4b46243eb
changeset: 15478:cde4b46243eb
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Wed Feb 15 10:25:57 2012 +0100
summary: Fixes issue 19730: Focus now stars in first filter editor field
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
| 2 +-
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
| 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r fd30d7d69072 -r cde4b46243eb
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
Wed Feb 15 09:46:47 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
Wed Feb 15 10:25:57 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()) {
+ if (item.getCanFocus() && !item.isDisabled() && item.editorType !==
'StaticTextItem') {
this.focusInFilterEditor(item);
return true;
}
diff -r fd30d7d69072 -r cde4b46243eb
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
Wed Feb 15 09:46:47 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
Wed Feb 15 10:25:57 2012 +0100
@@ -500,7 +500,12 @@
this.deleteSelectedParentRecordFilter(localState);
- this.Super('setViewState', ['(' + isc.Comm.serialize(localState, false)
+ ')']);
+ this.Super('setViewState', ['(' + isc.Comm.serialize(localState, false)
+ ')']);
+
+ // Focus on the first filterable item
+ if (this.view.isActiveView()) {
+ this.focusInFirstFilterEditor();
+ }
}
if (localState.noFilterClause) {
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits