Skip to content

Commit c868105

Browse files
author
Trent
committed
Merge branch 'dev' of github.com:trentrichardson/jQuery-Timepicker-Addon into dev
2 parents d842aca + 93d5982 commit c868105

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ $.extend(Timepicker.prototype, {
220220
// Added by Peter Medeiros:
221221
// - Figure out what the hour/minute/second max should be based on the step values.
222222
// - Example: if stepMinute is 15, then minMax is 45.
223-
hourMax = o.hourMax - (o.hourMax % o.stepHour),
224-
minMax = o.minuteMax - (o.minuteMax % o.stepMinute),
225-
secMax = o.secondMax - (o.secondMax % o.stepSecond),
223+
hourMax = (o.hourMax - (o.hourMax % o.stepHour)).toFixed(0),
224+
minMax = (o.minuteMax - (o.minuteMax % o.stepMinute)).toFixed(0),
225+
secMax = (o.secondMax - (o.secondMax % o.stepSecond)).toFixed(0),
226226
dp_id = this.inst.id.toString().replace(/([^A-Za-z0-9_])/g, '');
227227

228228
// Prevent displaying twice

0 commit comments

Comments
 (0)