details: https://code.openbravo.com/erp/devel/pi/rev/2be8e1d36868
changeset: 14798:2be8e1d36868
user: Martin Taal <martin.taal <at> openbravo.com>
date: Mon Dec 05 16:44:25 2011 +0100
summary: Fixes issue 19249: Some combo boxes don't work in grid mode. Cannot
type anything
Fixes issue 19211: Tab level does not change until third try
Fields with redrawonchange will redraw the cell/edit field in a grid line in
the same thread as the user
entering values, resulting loss of values, do the refresh of the row in a
separate thread
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
| 23 +++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r cb9504e6b9df -r 2be8e1d36868
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
Mon Dec 05 16:01:40 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
Mon Dec 05 16:44:25 2011 +0100
@@ -35,7 +35,28 @@
poolComponentsPerColumn: true,
showRecordComponents: true,
escapeHTML: true,
- bodyProperties: {canSelectText:true},
+ bodyProperties: {
+ canSelectText:true,
+
+ // the redraw on change should not only redraw the current item
+ // but the whole edit row, make sure that happens asynchronously
+ redrawFormItem: function(item, reason) {
+ var lg = this.grid, row = lg.getEditRow(),
+ col = lg.getColNum(item.getFieldName());
+
+ // If the user has edited the cell, or setValue() has been called on the
item
+ // we don't want a call to redraw() on the item to drop that value
+ if (lg.getEditCol() === col) {
+ lg.storeUpdatedEditorValue();
+ }
+
+ if (row === 0 || row > 0) {
+ lg.fireOnPause('refreshEditRow', function() {
+ lg.refreshRow(row);
+ });
+ }
+ }
+ },
enableShortcuts: function() {
var me = this;
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits