Roo/bootstrap/DateField.js
authorEdward <edward@roojs.com>
Mon, 26 May 2014 10:45:31 +0000 (18:45 +0800)
committerEdward <edward@roojs.com>
Mon, 26 May 2014 10:45:31 +0000 (18:45 +0800)
Roo/bootstrap/DateField.js

index cff9921..51567da 100644 (file)
@@ -443,7 +443,9 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
             this.viewDate = new Date(this.date);
         }
         
-        this.time = (typeof(this.time) === 'undefined') ? this.UTCTodayTime() : this.time;
+        if(this.showTime){
+            this.time = (typeof(this.time) === 'undefined') ? this.UTCTodayTime() : this.time;
+        }
         
         this.fill();
     },
@@ -587,6 +589,7 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
             
             year += 1;
         }
+        
     },
     
     showMode: function(dir) {