Add fix by doublerebel to determine ampm inside onTimeChnage

This commit is contained in:
Trent Richardson 2010-12-20 08:39:11 -05:00
parent c6f5819f13
commit 3d53741ca4

View file

@ -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);