Roo/form/Form.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 26 Jul 2010 09:17:44 +0000 (17:17 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 26 Jul 2010 09:17:44 +0000 (17:17 +0800)
Roo/form/Form.js

index d55b290..dcdf8f2 100644 (file)
@@ -206,30 +206,7 @@ Roo.extend(Roo.form.Form, Roo.form.BasicForm, {
         return this;
     },
     
-    /**
-     * Add a secondary form to this one, 
-     * Used to provide tabbed forms. One form is primary, with hidden values 
-     * which mirror the elements from the other forms.
-     * 
-     * @param {Roo.form.Form} form to add.
-     * 
-     */
-    
-    
-    addForm : function(form){
-       
-        this.childForms.push(form);
-        form.allItems.each(function (fe) {
-            
-            if (this.findField(fe.name)) { // already added..
-                return;
-            }
-            this.add( new Roo.form.Hidden({
-                name : fe.name
-            }));
-        }, this);
-        
-    },
+