projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #6384 - See if we can get checkbox to render on tests
[roojs1]
/
roojs-debug.js
diff --git
a/roojs-debug.js
b/roojs-debug.js
index
da9ccc2
..
5602bf3
100644
(file)
--- a/
roojs-debug.js
+++ b/
roojs-debug.js
@@
-4667,7
+4667,7
@@
Roo.Template.prototype = {
* @return {String} The HTML fragment
*/
applyTemplate : function(values){
* @return {String} The HTML fragment
*/
applyTemplate : function(values){
- Roo.log(["applyTemplate", values]);
+
//
Roo.log(["applyTemplate", values]);
try {
if(this.compiled){
try {
if(this.compiled){
@@
-42545,7
+42545,13
@@
Roo.extend(Roo.form.ComboBoxArray, Roo.form.TextField,
if (typeof(v) == 'object' ) {
// then let's assume it's an array of objects..
Roo.each(v, function(l) {
if (typeof(v) == 'object' ) {
// then let's assume it's an array of objects..
Roo.each(v, function(l) {
- this.addItem(l);
+ var add = l;
+ if (typeof(l) == 'string') {
+ add = {};
+ add[this.valueField] = l;
+ add[this.displayField] = l
+ }
+ this.addItem(add);
}, this);
}
}, this);
}