details: /erp/devel/pi/rev/9b3f99f3d853
changeset: 12079:9b3f99f3d853
user: Martin Taal <martin.taal <at> openbravo.com>
date: Tue May 10 14:46:53 2011 +0200
summary: Fixes issue 16516: If I type at normal speed in Quick Launch text
box, the window does not open
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-quick-launch.js
| 9 +++------
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
| 4 ++--
2 files changed, 5 insertions(+), 8 deletions(-)
diffs (57 lines):
diff -r 480d39749726 -r 9b3f99f3d853
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-quick-launch.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-quick-launch.js
Tue May 10 14:36:37 2011 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-quick-launch.js
Tue May 10 14:46:53 2011 +0200
@@ -144,11 +144,7 @@
// client filtering does not always work great...
pickListProperties: {
- dataProperties: {
- useClientFiltering: false
- },
textMatchStyle: 'substring',
- fetchDelay: 50,
bodyStyleName: 'OBPickListBody'
},
pickListHeaderHeight: 0,
@@ -173,7 +169,7 @@
displayField: OB.Constants.IDENTIFIER,
valueField: OB.Constants.ID
}],
- autoFetchData: false,
+ autoFetchData: true,
titleOrientation: 'top',
title: OB.I18N.getLabel(this.titleLabel),
editorType: 'comboBox',
@@ -181,7 +177,8 @@
// local filtering enabled, remove the Id filter
// explicitly from the criteria list, see getPickListFilter
filterLocally: true,
-
+ fetchDelay: 50,
+
optionDataSource: OB.Datasource.get(this.dataSourceId),
emptyPickListMessage: OB.I18N.getLabel('OBUISC_ListGrid.emptyMessage'),
diff -r 480d39749726 -r 9b3f99f3d853
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
---
a/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
Tue May 10 14:36:37 2011 +0200
+++
b/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
Tue May 10 14:46:53 2011 +0200
@@ -30,9 +30,9 @@
import org.openbravo.base.exception.OBException;
import org.openbravo.base.provider.OBProvider;
import org.openbravo.service.json.DataToJsonConverter;
+import org.openbravo.service.json.DefaultJsonDataService.QueryResultWriter;
import org.openbravo.service.json.JsonConstants;
import org.openbravo.service.json.JsonUtils;
-import org.openbravo.service.json.DefaultJsonDataService.QueryResultWriter;
/**
* The SimpleDataSourceService provides a simple way of returning data in the
correct format for a
@@ -54,7 +54,7 @@
final String startRowStr =
parameters.get(JsonConstants.STARTROW_PARAMETER);
final String endRowStr = parameters.get(JsonConstants.ENDROW_PARAMETER);
- int startRow = -1;
+ int startRow = 0;
boolean doCount = false;
if (startRowStr != null) {
startRow = Integer.parseInt(startRowStr);
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits