From 6b6cdf94e13378d2e2a2f5e80b5575d5f1dce5b5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 8 Apr 2012 15:54:23 +0800 Subject: [PATCH] builder.html.js --- builder.html.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/builder.html.js b/builder.html.js index 85be7c17d..f9c66210d 100644 --- a/builder.html.js +++ b/builder.html.js @@ -12,7 +12,7 @@ Builder = { id : 1, - render : function(data) + render : function(data, strname) { // for debugging // console.log(data); return; @@ -21,9 +21,12 @@ Builder = { // data should now be dialog or xcomponent.. // only snag here is that we do not know the name currently.. + var ix = '_src_' + this.id++; + // should replace module name with Builder._src_{id} + data = data.replace(strname, 'Builder.' + ix); + // next.. we need to ensure that parent is set correctly.. + data += "\n" + 'Builder.' + ix + ".parent = '#renderel';\n"; - - Roo.log(data);return; if (this.scriptTag) { @@ -48,7 +51,7 @@ Builder = { Builder.click= Roo.get(document.body).on('click', this.onclick, this); } - var ix = '_src_' + this.id; + var wait_for_tree = function() { Builder.tree = Builder[ix]; -- 2.39.2