projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
564ef00
)
Roo/form/ComboNested.js
author
Alan Knowles
<alan@roojs.com>
Mon, 10 Feb 2020 06:28:47 +0000
(14:28 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 10 Feb 2020 06:28:47 +0000
(14:28 +0800)
Roo/form/ComboNested.js
patch
|
blob
|
history
diff --git
a/Roo/form/ComboNested.js
b/Roo/form/ComboNested.js
index
91771f5
..
9d41e3e
100644
(file)
--- a/
Roo/form/ComboNested.js
+++ b/
Roo/form/ComboNested.js
@@
-297,7
+297,7
@@
Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, {
((this.listWidth * 3 || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr')) / 3
);
var data = typeof(rec.data.cn) == 'undefined' ? [] : rec.data.cn;
((this.listWidth * 3 || Math.max(this.wrap.getWidth(), this.minListWidth)) - this.list.getFrameWidth('lr')) / 3
);
var data = typeof(rec.data.cn) == 'undefined' ? [] : rec.data.cn;
- var dl = typeof(data.data.cn) != 'undefined' ? data.
data.
total : data.length; ///json is a nested response..
+ var dl = typeof(data.data.cn) != 'undefined' ? data.total : data.length; ///json is a nested response..
this.stores[opts.list+1].loadData( data );
this.views[opts.list+1].getEl().setHeight( this.innerLists[0].getHeight());
this.views[opts.list+1].getEl().setStyle({ display : dl ? 'block' : 'none' });
this.stores[opts.list+1].loadData( data );
this.views[opts.list+1].getEl().setHeight( this.innerLists[0].getHeight());
this.views[opts.list+1].getEl().setStyle({ display : dl ? 'block' : 'none' });