Roo/bootstrap/DateField.js
authorEdward <edward@roojs.com>
Thu, 23 Apr 2015 05:44:24 +0000 (13:44 +0800)
committerEdward <edward@roojs.com>
Thu, 23 Apr 2015 05:44:24 +0000 (13:44 +0800)
Roo/bootstrap/DateField.js

index c834d1b..adb8fe4 100644 (file)
@@ -722,6 +722,13 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
                         this.viewDate.setUTCFullYear(year);
                         
                     }
+                    
+                    if(this.singleMode){
+                        this.setValue(this.formatDate(this.date));
+                        this.hide();
+                        return;
+                    }
+                    
                     this.showMode(-1);
                     this.fill();
                 }