Roo/bootstrap/form/Input.js
[roojs1] / roojs-bootstrap-debug.js
index 6a46450..2166b33 100644 (file)
@@ -13657,7 +13657,7 @@ Roo.extend(Roo.bootstrap.form.TextArea, Roo.bootstrap.form.Input,  {
             this.el.select('.form-control-feedback', true).first().removeClass([this.invalidFeedbackClass, this.validFeedbackClass]);
         }
 
-        if(this.disabled || this.allowBlank){
+        if(this.disabled){
             return;
         }
         
@@ -24210,13 +24210,10 @@ Roo.extend(Roo.bootstrap.form.TimeField, Roo.bootstrap.form.Input,  {
     
     update: function()
     {
-        
+        // default minute is a multiple of minuteStep
         if(typeof(this.time) === 'undefined') {
-            var now = new Date();
-            var oldMinute = parseInt(now.format('i'));
-            var newMinute = Math.round(parseInt(now.format('i')) / this.minuteStep) * this.minuteStep;
-            Roo.log(oldMinute);
-            Roo.log(newMinute);
+            this.time = new Date();
+            this.time = this.time.add(Date.MINUTE, Math.round(parseInt(this.time.format('i')) / this.minuteStep) * this.minuteStep - parseInt(this.time.format('i')));
         }
         this.time = (typeof(this.time) === 'undefined') ? new Date() : this.time;