Permalink
Browse files

Merge branch 'dev' of github.com:trentrichardson/jQuery-Timepicker-Ad…

…don into dev
  • Loading branch information...
2 parents d842aca + 93d5982 commit c8681053eaaef05fd770fe4c57c162a6ae2c48c8 Trent committed Dec 2, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery-ui-timepicker-addon.js
@@ -220,9 +220,9 @@ $.extend(Timepicker.prototype, {
// Added by Peter Medeiros:
// - Figure out what the hour/minute/second max should be based on the step values.
// - Example: if stepMinute is 15, then minMax is 45.
- hourMax = o.hourMax - (o.hourMax % o.stepHour),
- minMax = o.minuteMax - (o.minuteMax % o.stepMinute),
- secMax = o.secondMax - (o.secondMax % o.stepSecond),
+ hourMax = (o.hourMax - (o.hourMax % o.stepHour)).toFixed(0),
+ minMax = (o.minuteMax - (o.minuteMax % o.stepMinute)).toFixed(0),
+ secMax = (o.secondMax - (o.secondMax % o.stepSecond)).toFixed(0),
dp_id = this.inst.id.toString().replace(/([^A-Za-z0-9_])/g, '');
// Prevent displaying twice

0 comments on commit c868105

Please sign in to comment.