projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5bf463f
)
Changed Roo/form/BasicForm.jsdocs/json/roodata.jsondocs/src/Roo_form_BasicForm.js...
author
Alan
<alan@roojs.com>
Fri, 23 Sep 2022 03:20:38 +0000
(11:20 +0800)
committer
Alan
<alan@roojs.com>
Fri, 23 Sep 2022 03:20:38 +0000
(11:20 +0800)
Roo/form/BasicForm.js
patch
|
blob
|
history
docs/json/roodata.json
patch
|
blob
|
history
docs/src/Roo_form_BasicForm.js.html
patch
|
blob
|
history
docs/symbols/Roo.form.BasicForm.json
patch
|
blob
|
history
docs/symbols/Roo.form.Form.json
patch
|
blob
|
history
roojs-debug.js
patch
|
blob
|
history
roojs-ui-debug.js
patch
|
blob
|
history
diff --git
a/Roo/form/BasicForm.js
b/Roo/form/BasicForm.js
index
67472d0
..
130319a
100644
(file)
--- a/
Roo/form/BasicForm.js
+++ b/
Roo/form/BasicForm.js
@@
-507,6
+507,9
@@
clientValidation Boolean Applies to submit only. Pass true to call fo
for(id in values){
if(typeof values[id] != 'function' && (field = this.findField(id))){
for(id in values){
if(typeof values[id] != 'function' && (field = this.findField(id))){
+
+
+
if (field.setFromData &&
field.valueField &&
field.displayField &&
if (field.setFromData &&
field.valueField &&
field.displayField &&
@@
-521,6
+524,9
@@
clientValidation Boolean Applies to submit only. Pass true to call fo
sd[field.displayField] = typeof(values[field.name]) == 'undefined' ? '' : values[field.name];
field.setFromData(sd);
sd[field.displayField] = typeof(values[field.name]) == 'undefined' ? '' : values[field.name];
field.setFromData(sd);
+ } else if (field.inputType && field.inputType == 'radio') {
+
+ field.setValue(values[id]);
} else {
field.setValue(values[id]);
}
} else {
field.setValue(values[id]);
}
@@
-546,7
+552,7
@@
clientValidation Boolean Applies to submit only. Pass true to call fo
/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
- * @param {Boolean} asString (def
ault false
)
+ * @param {Boolean} asString (def)
* @return {Object}
*/
getValues : function(asString)
* @return {Object}
*/
getValues : function(asString)
diff --git
a/docs/json/roodata.json
b/docs/json/roodata.json
index
3c8a71c
..
485b3f2
100644
(file)
--- a/
docs/json/roodata.json
+++ b/
docs/json/roodata.json
@@
-216152,7
+216152,7
@@
{
"name" : "asString",
"type" : "Boolean",
{
"name" : "asString",
"type" : "Boolean",
- "desc" : "",
+ "desc" : "
(default false)
",
"isOptional" : false
}
],
"isOptional" : false
}
],
@@
-244914,7
+244914,7
@@
{
"name" : "asString",
"type" : "Boolean",
{
"name" : "asString",
"type" : "Boolean",
- "desc" : "",
+ "desc" : "
(default false)
",
"isOptional" : false
}
],
"isOptional" : false
}
],
diff --git
a/docs/src/Roo_form_BasicForm.js.html
b/docs/src/Roo_form_BasicForm.js.html
index
1210410
..
e0a4d54
100644
(file)
--- a/
docs/src/Roo_form_BasicForm.js.html
+++ b/
docs/src/Roo_form_BasicForm.js.html
@@
-546,7
+546,7
@@
clientValidation Boolean Applies to submit only. Pass true to call fo
</span><span class="jsdoc-comment">/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
</span><span class="jsdoc-comment">/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
- * @param {Boolean} asString
+ * @param {Boolean} asString
(default false)
* @return {Object}
*/
</span><span class="jsdoc-var">getValues </span><span class="jsdoc-syntax">: </span><span class="jsdoc-keyword">function</span><span class="jsdoc-syntax">(</span><span class="jsdoc-var">asString</span><span class="jsdoc-syntax">)
* @return {Object}
*/
</span><span class="jsdoc-var">getValues </span><span class="jsdoc-syntax">: </span><span class="jsdoc-keyword">function</span><span class="jsdoc-syntax">(</span><span class="jsdoc-var">asString</span><span class="jsdoc-syntax">)
diff --git
a/docs/symbols/Roo.form.BasicForm.json
b/docs/symbols/Roo.form.BasicForm.json
index
f220c77
..
32cc83a
100644
(file)
--- a/
docs/symbols/Roo.form.BasicForm.json
+++ b/
docs/symbols/Roo.form.BasicForm.json
@@
-286,7
+286,7
@@
{
"name" : "asString",
"type" : "Boolean",
{
"name" : "asString",
"type" : "Boolean",
- "desc" : "",
+ "desc" : "
(default false)
",
"isOptional" : false
}
],
"isOptional" : false
}
],
diff --git
a/docs/symbols/Roo.form.Form.json
b/docs/symbols/Roo.form.Form.json
index
75d14e3
..
4b50cc6
100644
(file)
--- a/
docs/symbols/Roo.form.Form.json
+++ b/
docs/symbols/Roo.form.Form.json
@@
-808,7
+808,7
@@
{
"name" : "asString",
"type" : "Boolean",
{
"name" : "asString",
"type" : "Boolean",
- "desc" : "",
+ "desc" : "
(default false)
",
"isOptional" : false
}
],
"isOptional" : false
}
],
diff --git
a/roojs-debug.js
b/roojs-debug.js
index
0e683fb
..
beb5f43
100644
(file)
--- a/
roojs-debug.js
+++ b/
roojs-debug.js
@@
-54329,7
+54329,7
@@
clientValidation Boolean Applies to submit only. Pass true to call fo
/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
- * @param {Boolean} asString
+ * @param {Boolean} asString
(default false)
* @return {Object}
*/
getValues : function(asString)
* @return {Object}
*/
getValues : function(asString)
diff --git
a/roojs-ui-debug.js
b/roojs-ui-debug.js
index
94e89a3
..
b0e0a86
100644
(file)
--- a/
roojs-ui-debug.js
+++ b/
roojs-ui-debug.js
@@
-29830,7
+29830,7
@@
clientValidation Boolean Applies to submit only. Pass true to call fo
/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
/**
* Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
* they are returned as an array.
- * @param {Boolean} asString
+ * @param {Boolean} asString
(default false)
* @return {Object}
*/
getValues : function(asString)
* @return {Object}
*/
getValues : function(asString)