diff options
author | Keith Wood <kbwood.au@gmail.com> | 2009-01-19 10:45:09 +0000 |
---|---|---|
committer | Keith Wood <kbwood.au@gmail.com> | 2009-01-19 10:45:09 +0000 |
commit | 895512190ace390a31e91d248f936ab664816a63 (patch) | |
tree | 23f7b53448454ee4769a689125a463c23f757c07 /ui | |
parent | 10de3f0be288fcce20730f285bb6cf783798f547 (diff) | |
download | jquery-ui-895512190ace390a31e91d248f936ab664816a63.tar.gz jquery-ui-895512190ace390a31e91d248f936ab664816a63.zip |
Fixed #3778 - Unable to select month: numberOfMonths - maxDate - changeMonth combi
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.datepicker.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index 6ec694e47..4ac3eee68 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -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)), |