mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed #3778 - Unable to select month: numberOfMonths - maxDate - changeMonth combi
This commit is contained in:
parent
10de3f0be2
commit
895512190a
@ -707,7 +707,9 @@ $.extend(Datepicker.prototype, {
|
||||
if (this._isDisabledDatepicker(target[0])) {
|
||||
return;
|
||||
}
|
||||
this._adjustInstDate(inst, offset, period);
|
||||
this._adjustInstDate(inst, offset +
|
||||
(period == 'M' ? this._get(inst, 'showCurrentAtPos') : 0), // undo positioning
|
||||
period);
|
||||
this._updateDatepicker(inst);
|
||||
},
|
||||
|
||||
@ -1283,6 +1285,8 @@ $.extend(Datepicker.prototype, {
|
||||
}
|
||||
}
|
||||
}
|
||||
inst.drawMonth = drawMonth;
|
||||
inst.drawYear = drawYear;
|
||||
var prevText = this._get(inst, 'prevText');
|
||||
prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText,
|
||||
this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),
|
||||
|
Loading…
Reference in New Issue
Block a user