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

index 2a88ddf..40f960f 100644 (file)
@@ -602,6 +602,16 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input,  {
                 hours = '0' + hours;
             }
             
+            if(minutes < 10){
+                minutes = '0' + minutes;
+            }
+            
+            var period = this.time.format('A');
+            
+            this.picker().select('.datepicker-time .timepicker-hour', true).first().dom.innerHTML = hours;
+            
+            this.picker().select('.datepicker-time .timepicker-minute', true).first().dom.innerHTML = minutes;
+            
         }
         
     },