Skip to content

Commit

Permalink
Fix bug where if maxTime or minTime was 0 it wouldn't call update to …
Browse files Browse the repository at this point in the history
…minute display when changing hours.
  • Loading branch information
phazei committed Oct 26, 2013
1 parent ee789e1 commit 9e4ed69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.ui.timepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@
var onMinuteShow = this._get(inst, 'onMinuteShow'),
maxTime = this._get(inst, 'maxTime'),
minTime = this._get(inst, 'minTime');
if (onMinuteShow || maxTime.minute || minTime.minute) {
if (onMinuteShow || !isNaN(parseInt(maxTime.minute)) || !isNaN(parseInt(minTime.minute))) {
// this will trigger a callback on selected hour to make sure selected minute is allowed.
this._updateMinuteDisplay(inst);
}
Expand Down

0 comments on commit 9e4ed69

Please sign in to comment.