Add fix by doublerebel to determine ampm inside onTimeChnage
This commit is contained in:
parent
c6f5819f13
commit
3d53741ca4
2
jquery-ui-timepicker-addon.js
vendored
2
jquery-ui-timepicker-addon.js
vendored
|
@ -535,7 +535,7 @@ $.extend(Timepicker.prototype, {
|
|||
|
||||
if (hour) {
|
||||
this.hour = parseFloat(hour).toFixed(0);
|
||||
this.ampm = ampm;
|
||||
if (this._defaults.ampm) this.ampm = ampm;
|
||||
}
|
||||
if (minute) this.minute = parseFloat(minute).toFixed(0);
|
||||
if (second) this.second = parseFloat(second).toFixed(0);
|
||||
|
|
Loading…
Reference in a new issue