// eg. if a locking scenario exists..
// we look for { errors : { needs_confirm : true }} in the response.
if (
- (typeof(action.result) != 'undefined') != 'undefined') &&
+ (typeof(action.result) != 'undefined') &&
(typeof(action.result.errors) != 'undefined') &&
(typeof(action.result.errors.needs_confirm) != 'undefined')
- ){
+ ){
var _t = this;
Roo.MessageBox.confirm(
"Change requires confirmation",
return;
}
var v = f.getValue();
+ if (f.inputType =='radio') {
+ if (typeof(ret[f.getName()]) == 'undefined') {
+ ret[f.getName()] = ''; // empty..
+ }
+
+ if (!f.el.dom.checked) {
+ return;
+
+ }
+ v = f.el.dom.value;
+
+ }
+
// not sure if this supported any more..
if ((typeof(v) == 'object') && f.getRawValue) {
v = f.getRawValue() ; // dates..