From e6b2f6162ef7473e79f4721e4372a6b21a24d670 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 10 Nov 2010 15:21:49 +0800 Subject: [PATCH] roojs-ui-debug.js --- roojs-ui-debug.js | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 00921d85b8..6b77930467 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -26424,6 +26424,16 @@ Roo.form.Form = function(config){ rendered : true }); + if (this.progressUrl) { + // push a hidden field onto the list of fields.. + this.items.addxtype( { + xns: Roo.form, + xtype : 'Hidden', + name : 'UPLOAD_IDENTIFIER' + }); + } + + Roo.each(xitems, this.addxtype, this); @@ -26614,7 +26624,11 @@ Roo.extend(Roo.form.Form, Roo.form.BasicForm, { * @param {String/HTMLElement/Element} container The element this component should be rendered into * @return {Form} this */ - render : function(ct){ + render : function(ct) + { + + + ct = Roo.get(ct); var o = this.autoCreate || { tag: 'form', @@ -26625,14 +26639,7 @@ Roo.extend(Roo.form.Form, Roo.form.BasicForm, { this.root.render(this.el); - if (this.progressUrl && !this.findField( 'UPLOAD_IDENTIFIER')) { - // push a hidden field onto the list of fields.. - this.items.unshift( Roo.factory( { - xns: Roo.form, - xtype : 'Hidden', - name : 'UPLOAD_IDENTIFIER' - })); - } + this.items.each(function(f){ f.render('x-form-el-'+f.id); -- 2.39.2