details: /erp/devel/pi/rev/e5808cac2981
changeset: 9833:e5808cac2981
user: Martin Taal <martin.taal <at> openbravo.com>
date: Sat Jan 15 09:19:37 2011 +0100
summary: Direct link: open child tab without delay
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
| 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (26 lines):
diff -r 2463349571b0 -r e5808cac2981
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
Sat Jan 15 09:15:54 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
Sat Jan 15 09:19:37 2011 +0100
@@ -314,7 +314,7 @@
return ret;
},
- // handle the target record when the body has been drawn
+ // with a delay to handle the target record when the body has been drawn
delayedHandleTargetRecord: function(startRow, endRow){
var rowTop, recordIndex, i, data = this.data, tmpTargetRecordId =
this.targetRecordId;
if (!this.targetRecordId) {
@@ -345,11 +345,8 @@
this.doSelectSingleRecord(gridRecord);
this.scrollRecordIntoView(recordIndex, true);
- isc.Page.waitFor(this, 'delayedHandleTargetRecord', {
- method: this.view.openDirectChildTab(),
- args: [],
- target: this.view
- });
+ // go to the children
+ this.view.openDirectChildTab();
} else {
// wait a bit longer til the body is drawn
this.delayCall('delayedHandleTargetRecord', [startRow, endRow], 200,
this);
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits