Add fix by doublerebel to determine ampm inside onTimeChnage

master
Trent Richardson 2010-12-20 08:39:11 -05:00
parent c6f5819f13
commit 3d53741ca4
1 changed files with 1 additions and 1 deletions

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