Roo/form/BasicForm.js
authorAlan Knowles <alan@roojs.com>
Wed, 20 Nov 2013 06:01:30 +0000 (14:01 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Nov 2013 06:01:30 +0000 (14:01 +0800)
Roo/form/BasicForm.js

index 64ae2d7..8c1dae7 100644 (file)
@@ -500,6 +500,19 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
             if (!f.getName()) {
                 return;
             }
+            var v = f.getValue();
+            if (f.inputType =='radio') {
+                if (typeof(ret[f.getName()]) = 'undefined') {
+                    ret[f.getName()] = ''; // empty..
+                }
+                
+                if (f.el.dom.checked) {
+                    v = f.el.dom.value;
+                }
+                
+                
+            }
+            
             var v = f.getValue();
             // not sure if this supported any more..
             if ((typeof(v) == 'object') && f.getRawValue) {