Skip to content

Commit

Permalink
Merge pull request jdewit#28 from terribletriojoe/master
Browse files Browse the repository at this point in the history
Fixed meridian toggle bug in decrementHour
  • Loading branch information
jdewit committed Jul 23, 2012
2 parents fe6d0db + c61bebb commit 2e8bfcf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/bootstrap-timepicker.js
Expand Up @@ -395,9 +395,11 @@
, decrementHour: function() {
if (this.showMeridian) {
if (this.hour === 1) {
this.hour = 12;
return this.toggleMeridian();
return this.hour = 12;
}
else if (this.hour === 12) {
this.toggleMeridian();
}
}
if (this.hour === 0) {
return this.hour = 23;
Expand Down

0 comments on commit 2e8bfcf

Please sign in to comment.