sync
[roojs1] / Roo / form / Radio.js
index e0eec95..974e543 100644 (file)
@@ -76,18 +76,15 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
         //    this.el.dom.defaultChecked = this.checked;
         //}
         this.setChecked(String(v) === String(this.inputValue), suppressEvent);
-        this.el.dom.form[this.name] = v;
+        
+        this.el.dom.form[this.name].value = v;
+     
         //this.fireEvent("check", this, this.checked);
     },
     // private..
     setChecked : function(state,suppressEvent)
     {
-        if (this.inSetChecked) {
-            this.checked = state;
-            return;
-        }
-        
-    
+         
         if(this.wrap){
             this.wrap[state ? 'addClass' : 'removeClass']('x-menu-item-checked');
         }
@@ -95,12 +92,15 @@ Roo.extend(Roo.form.Radio, Roo.form.Checkbox, {
         if(suppressEvent !== true){
             this.fireEvent('check', this, state);
         }
-        this.inSetChecked = true;
                 
                  
-        this.inSetChecked = false;
+       
         
-    }
-
+    },
+    reset : function(){
+        // this.setValue(this.resetValue);
+        //this.originalValue = this.getValue();
+        this.clearInvalid();
+    } 
     
 });
\ No newline at end of file