Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 2 contributors

Showing 1 changed file with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. 10  js/bootstrap-timepicker.js
10  js/bootstrap-timepicker.js
@@ -338,6 +338,8 @@
338 338
             } else {
339 339
                  if (this.hour >= 24) {
340 340
                     this.hour = 23;
  341
+                } else if (this.hour < 0) {
  342
+                    this.hour = 0;
341 343
                 }
342 344
             }
343 345
 
@@ -489,13 +491,13 @@
489 491
         }
490 492
 
491 493
         , updateFromWidgetInputs: function () {
492  
-            var time = $('input.bootstrap-timepicker-hour').val() + ':' + 
493  
-                       $('input.bootstrap-timepicker-minute').val() +
  494
+            var time = $('input.bootstrap-timepicker-hour', this.$widget).val() + ':' + 
  495
+                       $('input.bootstrap-timepicker-minute', this.$widget).val() +
494 496
                        (this.showSeconds ? 
495  
-                           ':' + $('input.bootstrap-timepicker-second').val() 
  497
+                           ':' + $('input.bootstrap-timepicker-second', this.$widget).val() 
496 498
                         : '') +
497 499
                        (this.showMeridian ? 
498  
-                           ' ' + $('input.bootstrap-timepicker-meridian').val() 
  500
+                           ' ' + $('input.bootstrap-timepicker-meridian', this.$widget).val() 
499 501
                         : '');
500 502
 
501 503
             this.setValues(time);

No commit comments for this range

Something went wrong with that request. Please try again.