Fix bug where ampm is not displayed when first initiated
This commit is contained in:
parent
999803035f
commit
9efeb990d2
1 changed files with 3 additions and 5 deletions
8
jquery-ui-timepicker-addon.js
vendored
8
jquery-ui-timepicker-addon.js
vendored
|
@ -562,14 +562,12 @@ $.extend(Timepicker.prototype, {
|
|||
|
||||
if (hasChanged) {
|
||||
|
||||
if (hour !== false) {
|
||||
this.hour = hour;
|
||||
if (this._defaults.ampm) this.ampm = ampm;
|
||||
}
|
||||
if (hour !== false)this.hour = hour;
|
||||
if (minute !== false) this.minute = minute;
|
||||
if (second !== false) this.second = second;
|
||||
|
||||
}
|
||||
if (this._defaults.ampm) this.ampm = ampm;
|
||||
|
||||
this._formatTime();
|
||||
if (this.$timeObj) this.$timeObj.text(this.formattedTime);
|
||||
this.timeDefined = true;
|
||||
|
|
Loading…
Reference in a new issue