projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32b1986
)
Roo/bootstrap/ComboBox.js
author
Michael
<michael@roojs.com>
Wed, 11 Feb 2015 07:45:33 +0000
(15:45 +0800)
committer
Michael
<michael@roojs.com>
Wed, 11 Feb 2015 07:45:33 +0000
(15:45 +0800)
Roo/bootstrap/ComboBox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/ComboBox.js
b/Roo/bootstrap/ComboBox.js
index
6e687f8
..
9e0a5cc
100644
(file)
--- a/
Roo/bootstrap/ComboBox.js
+++ b/
Roo/bootstrap/ComboBox.js
@@
-1036,7
+1036,12
@@
Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
setFromData : function(o){
if(this.multiple){
- this.addItem(o);
+ if(typeof o.display_name !== 'string'){
+ for(var dn in o.display_name){
+ this.addItem({'id':o.id,'display_name':dn});
+ }
+ }
+ //this.addItem(o);
return;
}