Fixed an issue where a text field containing a time with hour 23 or minute 59 (the highest possible values) would cause the calendar date to reset to 1869 when the picker is displayed.
This commit is contained in:
parent
3d8b9dc193
commit
3266d91cd9
6
jquery-ui-timepicker-addon.js
vendored
6
jquery-ui-timepicker-addon.js
vendored
|
@ -220,9 +220,9 @@ $.extend(Timepicker.prototype, {
|
||||||
// Added by Peter Medeiros:
|
// Added by Peter Medeiros:
|
||||||
// - Figure out what the hour/minute/second max should be based on the step values.
|
// - Figure out what the hour/minute/second max should be based on the step values.
|
||||||
// - Example: if stepMinute is 15, then minMax is 45.
|
// - Example: if stepMinute is 15, then minMax is 45.
|
||||||
hourMax = o.hourMax - (o.hourMax % o.stepHour),
|
hourMax = (o.hourMax - (o.hourMax % o.stepHour)).toFixed(0),
|
||||||
minMax = o.minuteMax - (o.minuteMax % o.stepMinute),
|
minMax = (o.minuteMax - (o.minuteMax % o.stepMinute)).toFixed(0),
|
||||||
secMax = o.secondMax - (o.secondMax % o.stepSecond),
|
secMax = (o.secondMax - (o.secondMax % o.stepSecond)).toFixed(0),
|
||||||
dp_id = this.inst.id.toString().replace(/([^A-Za-z0-9_])/g, '');
|
dp_id = this.inst.id.toString().replace(/([^A-Za-z0-9_])/g, '');
|
||||||
|
|
||||||
// Prevent displaying twice
|
// Prevent displaying twice
|
||||||
|
|
Loading…
Reference in a new issue