From: Alan Knowles Date: Mon, 26 Jul 2010 09:14:01 +0000 (+0800) Subject: Roo/form/BasicForm.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=2f8bbd3186747f2b564b72b47448b23355e1a31f;p=roojs1 Roo/form/BasicForm.js --- diff --git a/Roo/form/BasicForm.js b/Roo/form/BasicForm.js index 4ab1eda781..06ddf74a23 100644 --- a/Roo/form/BasicForm.js +++ b/Roo/form/BasicForm.js @@ -96,6 +96,13 @@ Roo.extend(Roo.form.BasicForm, Roo.util.Observable, { */ trackResetOnLoad : false, + + /** + * allFields - full list of fields. + * @type {Array} + */ + allFields : false, + /** * By default wait messages are displayed with Roo.MessageBox.wait. You can target a specific * element by passing it or its id or mask the form itself by passing in true. @@ -369,6 +376,14 @@ clientValidation Boolean Applies to submit only. Pass true to call fo * @return {Object} */ getValues : function(asString){ + if (this.childForms) { + Roo.each(this.childForms, function (f) { + f.setValues(values); + }, this); + } + + + var fs = Roo.lib.Ajax.serializeForm(this.el.dom); if(asString === true){ return fs;