readonly for date fields should not show popup
[roojs1] / Roo / form / DateField.js
index 030f671..cf7a557 100644 (file)
@@ -341,7 +341,7 @@ dateField.setValue('2006-5-4');
     // private
     // Implements the default empty TriggerField.onTriggerClick function to display the DatePicker
     onTriggerClick : function(){
-        if(this.disabled){
+        if(this.disabled || this.readOnly){
             return;
         }
         if(this.menu == null){