Fix so altField for timepicker mode also show time if altField is set
This commit is contained in:
parent
2ec0a4e021
commit
35cdf9add9
8
jquery-ui-timepicker-addon.js
vendored
8
jquery-ui-timepicker-addon.js
vendored
|
@ -516,8 +516,12 @@ $.extend(Timepicker.prototype, {
|
||||||
if (dp_inst.lastVal !== undefined && (dp_inst.lastVal.length > 0 && this.$input.val().length === 0))
|
if (dp_inst.lastVal !== undefined && (dp_inst.lastVal.length > 0 && this.$input.val().length === 0))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (this._defaults.timeOnly === true) formattedDateTime = this.formattedTime;
|
if (this._defaults.timeOnly === true) {
|
||||||
else if (this._defaults.timeOnly !== true && (this._defaults.alwaysSetTime || timeAvailable)) {
|
formattedDateTime = this.formattedTime;
|
||||||
|
if (this.$altInput) {
|
||||||
|
this.$altInput.val(this.formattedDateTime);
|
||||||
|
}
|
||||||
|
} else if (this._defaults.timeOnly !== true && (this._defaults.alwaysSetTime || timeAvailable)) {
|
||||||
if (this.$altInput) {
|
if (this.$altInput) {
|
||||||
if (this._defaults.timeOnly !== true) {
|
if (this._defaults.timeOnly !== true) {
|
||||||
this.$altInput.val(this.$altInput.val() + ' ' + this.formattedTime);
|
this.$altInput.val(this.$altInput.val() + ' ' + this.formattedTime);
|
||||||
|
|
Loading…
Reference in a new issue