git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.3.0 - Released 10/06/2010
[extjs.git]
/
src
/
widgets
/
form
/
BasicForm.js
diff --git
a/src/widgets/form/BasicForm.js
b/src/widgets/form/BasicForm.js
index
a18cdba
..
bad1ebe
100644
(file)
--- a/
src/widgets/form/BasicForm.js
+++ b/
src/widgets/form/BasicForm.js
@@
-1,5
+1,5
@@
/*!
/*!
- * Ext JS Library 3.
2.2
+ * Ext JS Library 3.
3.0
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
@@
-479,7
+479,16
@@
myFormPanel.getForm().submit({
fs.each(function(f){
var field = this.findField(f.name);
if(field){
fs.each(function(f){
var field = this.findField(f.name);
if(field){
- record.set(f.name, field.getValue());
+ var value = field.getValue();
+ if ( value.getGroupValue ) {
+ value = value.getGroupValue();
+ } else if ( field.eachItem ) {
+ value = [];
+ field.eachItem(function(item){
+ value.push(item.getValue());
+ });
+ }
+ record.set(f.name, value);
}
}, this);
record.endEdit();
}
}, this);
record.endEdit();
@@
-561,8
+570,10
@@
myFormPanel.getForm().submit({
if (f.dataIndex == id || f.id == id || f.getName() == id) {
field = f;
return false;
if (f.dataIndex == id || f.id == id || f.getName() == id) {
field = f;
return false;
- } else if (f.isComposite
&& f.rendered
) {
+ } else if (f.isComposite) {
return f.items.each(findMatchingField);
return f.items.each(findMatchingField);
+ } else if (f instanceof Ext.form.CheckboxGroup && f.rendered) {
+ return f.eachItem(findMatchingField);
}
}
};
}
}
};
@@
-668,7
+679,7
@@
myFormPanel.getForm().submit({
key,
val;
this.items.each(function(f) {
key,
val;
this.items.each(function(f) {
- if (
dirtyOnly !== true || f.isDirty(
)) {
+ if (
!f.disabled && (dirtyOnly !== true || f.isDirty()
)) {
n = f.getName();
key = o[n];
val = f.getValue();
n = f.getName();
key = o[n];
val = f.getValue();