Permalink
Browse files

added tkompare fix for updating fromWidget

  • Loading branch information...
1 parent 3113ce0 commit 4b76dfc3ff0ce2f7085f9e2179c01582b6ed20a7 @jdewit committed Feb 16, 2013
Showing with 10 additions and 8 deletions.
  1. +4 −4 js/bootstrap-timepicker.js
  2. +1 −1 js/bootstrap-timepicker.min.js
  3. +5 −3 spec/js/MouseEventsSpec.js
@@ -751,10 +751,10 @@
if (this.$widget === false) {
return;
}
- var time = $('input.bootstrap-timepicker-hour', this.$widget).val() + ':' +
- $('input.bootstrap-timepicker-minute', this.$widget).val() +
- (this.showSeconds ? ':' + $('input.bootstrap-timepicker-second', this.$widget).val() : '') +
- (this.showMeridian ? ' ' + $('input.bootstrap-timepicker-meridian', this.$widget).val() : '');
+ var time = $('.bootstrap-timepicker-hour', this.$widget).val() + ':' +
+ $('.bootstrap-timepicker-minute', this.$widget).val() +
+ (this.showSeconds ? ':' + $('.bootstrap-timepicker-second', this.$widget).val() : '') +
+ (this.showMeridian ? ' ' + $('.bootstrap-timepicker-meridian', this.$widget).val() : '');
this.setTime(time);
},
Oops, something went wrong.

0 comments on commit 4b76dfc

Please sign in to comment.