Roo/bootstrap/ComboBox.js
authorMichael <michael@roojs.com>
Thu, 5 Feb 2015 10:45:26 +0000 (18:45 +0800)
committerMichael <michael@roojs.com>
Thu, 5 Feb 2015 10:45:26 +0000 (18:45 +0800)
Roo/bootstrap/ComboBox.js

index afcb9ba..e97c140 100644 (file)
@@ -861,11 +861,11 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
         this.editable = value;
         if(!value){
             this.inputEl().dom.setAttribute('readOnly', true);
-            //this.inputEl().on('mousedown', this.onTriggerClick,  this);
+            this.inputEl().on('mousedown', this.onTriggerClick,  this);
             this.inputEl().addClass('x-combo-noedit');
         }else{
             this.inputEl().dom.setAttribute('readOnly', false);
-            //this.inputEl().un('mousedown', this.onTriggerClick,  this);
+            this.inputEl().un('mousedown', this.onTriggerClick,  this);
             this.inputEl().removeClass('x-combo-noedit');
         }
     },