Skip to content

Commit

Permalink
Patch bootstrap-timepicker.js as per open PR on bootstrap-timepicker …
Browse files Browse the repository at this point in the history
  • Loading branch information
cal-tec committed Oct 2, 2016
1 parent 2a1dda5 commit d02f5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/bootstrap-timepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
return '';
}

return this.hour + ':' + (this.minute.toString().length === 1 ? '0' + this.minute : this.minute) + (this.showSeconds ? ':' + (this.second.toString().length === 1 ? '0' + this.second : this.second) : '') + (this.showMeridian ? ' ' + this.meridian : '');
return ( this.hour.toString().length === 1 ? '0' + this.hour : this.hour ) + ':' + (this.minute.toString().length === 1 ? '0' + this.minute : this.minute) + (this.showSeconds ? ':' + (this.second.toString().length === 1 ? '0' + this.second : this.second) : '') + (this.showMeridian ? ' ' + this.meridian : '');
},

hideWidget: function() {
Expand Down

0 comments on commit d02f5b1

Please sign in to comment.