details:   /erp/devel/pi/rev/c38b9bf12aac
changeset: 9473:c38b9bf12aac
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Thu Dec 30 11:41:09 2010 +0100
summary:   Load contents if the widget is initialized

diffstat:

 
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-widget.js 
|  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r b575f6295a26 -r c38b9bf12aac 
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-widget.js
--- 
a/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-widget.js
   Thu Dec 30 11:25:44 2010 +0100
+++ 
b/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-widget.js
   Thu Dec 30 11:41:09 2010 +0100
@@ -228,6 +228,11 @@
     this.src = null;
     this.items = [this.windowContents, this.editFormLayout];
     this.Super('initWidget', arguments);
+    
+    // refresh if the dbInstanceId is set
+    if (this.dbInstanceId) {
+      this.refresh();
+    }
   },
 
   confirmedClosePortlet: function(ok){
@@ -414,7 +419,7 @@
   // Returns true if the object passed as parameter is the same instance.
   // 
   // Parameters:
-  // {{widget}} an object to which you want to compare
+  // {{widget}} an object to which you want to campare
   // {{isNew}} If this flag is true, the comparison is based on the ID of the
   // client side object, otherwise the dbInstanceId is used
   isSameWidget: function(widget, isNew){
@@ -431,6 +436,7 @@
 
   setDbInstanceId: function(instanceId) {
     this.dbInstanceId = instanceId;
+    this.refresh();
   },
 
   saveParameters: function(){

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to