Skip to content
Permalink
Browse files

Fixed #3778 - Unable to select month: numberOfMonths - maxDate - chan…

…geMonth combi
  • Loading branch information
Keith Wood
Keith Wood committed Jan 19, 2009
1 parent 10de3f0 commit 895512190ace390a31e91d248f936ab664816a63
Showing with 5 additions and 1 deletion.
  1. +5 −1 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)),

0 comments on commit 8955121

Please sign in to comment.
You can’t perform that action at this time.