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

index bc35891..ad51607 100644 (file)
@@ -723,11 +723,11 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
                         
                     }
                     
-//                    if(this.singleMode){
-//                        this.setValue(this.formatDate(this.date));
-//                        this.hide();
-//                        return;
-//                    }
+                    if(this.singleMode){
+                        this.setValue(this.formatDate(this.viewDate));
+                        this.hide();
+                        return;
+                    }
                     Roo.log('run');
                     this.showMode(-1);
                     this.fill();