[WidgetInForm] re-evaluate src param on each refresh instead on only once
authorStefan Hühner <stefan.huehner@openbravo.com>
Mon, 01 Aug 2011 17:38:24 +0200
changeset 13370 06348d284aeb
parent 13369 ef714224f3f7
child 13371 ffa95c0d6236
[WidgetInForm] re-evaluate src param on each refresh instead on only once
This allows usage of dynamic values in the url-widget when used inside a
generated window.
modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-url-widget.js
--- a/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-url-widget.js	Mon Aug 01 17:37:17 2011 +0200
+++ b/modules/org.openbravo.client.myob/web/org.openbravo.client.myob/js/ob-url-widget.js	Mon Aug 01 17:38:24 2011 +0200
@@ -40,6 +40,9 @@
     });
   },
   refresh: function(){
+    if (this.parameters.src) {
+      this.contentSource = this.evaluateContents(this.parameters.src);
+    }
     this.windowContents.setContentsURL(this.contentSource);
   }
 });