Roo/form/ComboBox.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 22 Nov 2011 03:54:32 +0000 (11:54 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 22 Nov 2011 03:54:32 +0000 (11:54 +0800)
Roo/form/ComboBox.js

index baea1b0..b6c8374 100644 (file)
@@ -385,7 +385,7 @@ Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
 
         this.store.on('beforeload', this.onBeforeLoad, this);
         this.store.on('load', this.onLoad, this);
-        this.store.on('loadexception', this.collapse, this);
+        this.store.on('loadexception', this.onLoadException, this);
 
         if(this.resizable){
             this.resizer = new Roo.Resizable(this.list,  {
@@ -505,7 +505,7 @@ Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
         if(this.store){
             this.store.un('beforeload', this.onBeforeLoad, this);
             this.store.un('load', this.onLoad, this);
-            this.store.un('loadexception', this.collapse, this);
+            this.store.un('loadexception', this.onLoadException, this);
         }
         Roo.form.ComboBox.superclass.onDestroy.call(this);
     },
@@ -603,6 +603,10 @@ Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
         //this.el.focus();
     },
     onLoadException : function(){
+        this.collapse();
+        
+        
+        
         
         
     },