Roo/bootstrap/ComboBox.js
authoredward <edward@roojs.com>
Wed, 13 Apr 2016 03:25:43 +0000 (11:25 +0800)
committeredward <edward@roojs.com>
Wed, 13 Apr 2016 03:25:43 +0000 (11:25 +0800)
Roo/bootstrap/ComboBox.js

index ca303b2..a263324 100644 (file)
@@ -995,8 +995,17 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
         }
              
         if(this.store.getCount() > 0){
-            Roo.log('get count!!!!!!!!!!!!!!!!!!11');
-            Roo.log(this.store.getCount);
+            
+            if(this.checkAll.length){
+                
+                var r = new Roo.data.Record({
+                    this.valueField : -1,
+                    this.displayField : this.checkAll
+                });
+                
+                this.store.insert(0, r);
+            }
+            
             this.expand();
             this.restrictHeight();
             if(this.lastQuery == this.allQuery){