projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0c504c
)
Roo/form/BasicForm.js
author
Alan Knowles
<alan@roojs.com>
Wed, 20 Nov 2013 06:01:30 +0000
(14:01 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 20 Nov 2013 06:01:30 +0000
(14:01 +0800)
Roo/form/BasicForm.js
patch
|
blob
|
history
diff --git
a/Roo/form/BasicForm.js
b/Roo/form/BasicForm.js
index
64ae2d7
..
8c1dae7
100644
(file)
--- a/
Roo/form/BasicForm.js
+++ b/
Roo/form/BasicForm.js
@@
-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) {