projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d760d9f
)
Roo/form/ComboNested.js
author
Alan Knowles
<alan@roojs.com>
Mon, 10 Feb 2020 05:00:15 +0000
(13:00 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 10 Feb 2020 05:00:15 +0000
(13:00 +0800)
Roo/form/ComboNested.js
patch
|
blob
|
history
diff --git
a/Roo/form/ComboNested.js
b/Roo/form/ComboNested.js
index
b51ed31
..
16dca89
100644
(file)
--- a/
Roo/form/ComboNested.js
+++ b/
Roo/form/ComboNested.js
@@
-146,7
+146,8
@@
Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
this.tpl = new Roo.Template({
html : '<div class="'+cls+'-item '+cls+'-item-{cn:this.isEmpty}">{' + this.displayField + '}</div>',
isEmpty: function (value, allValues) {
- return value && value.length ? 'has-children' : 'no-children'
+ var dl = typeof(value.data) != 'undefined' ? value.data.total : value.length; ///json is a nested response..
+ return dl ? 'has-children' : 'no-children'
}
});
}