details: /erp/devel/pi/rev/522349ece7dd
changeset: 11460:522349ece7dd
user: Martin Taal <martin.taal <at> openbravo.com>
date: Mon Apr 04 16:31:03 2011 +0200
summary: Related to issue 16498: First focus is not working in grid view
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
| 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 9eac616b891b -r 522349ece7dd
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
Mon Apr 04 14:29:14 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
Mon Apr 04 16:31:03 2011 +0200
@@ -318,7 +318,6 @@
this.getField(this.view.parentProperty).canFilter = false;
this.getField(this.view.parentProperty).canEdit = false;
}
-
},
show: function(){
@@ -937,6 +936,9 @@
title: OB.I18N.getLabel('OBUIAPP_EditInGrid'),
click: function(){
grid.endEditing();
+ if (colNum || colNum === 0) {
+ grid.forceFocusColumn = grid.getField(colNum).name;
+ }
grid.startEditing(rowNum, colNum);
}
});
@@ -1607,9 +1609,10 @@
return ret;
}
- if (this.getEditForm() && newRow) {
+ if (this.forceFocusColumn) {
// set the field to focus on after returning from the fic
- this.getEditForm().setFocusItem(this.getField(colNum).name);
+ this.getEditForm().forceFocusedField = this.forceFocusColumn;
+ delete this.forceFocusColumn;
}
var record = this.getRecord(rowNum);
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits