mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
parent
882eb4cbf2
commit
bf5d6f314b
@ -1913,8 +1913,8 @@ $.extend( Datepicker.prototype, {
|
||||
|
||||
/* Adjust one of the date sub-fields. */
|
||||
_adjustInstDate: function( inst, offset, period ) {
|
||||
var year = inst.drawYear + ( period === "Y" ? offset : 0 ),
|
||||
month = inst.drawMonth + ( period === "M" ? offset : 0 ),
|
||||
var year = inst.selectedYear + ( period === "Y" ? offset : 0 ),
|
||||
month = inst.selectedMonth + ( period === "M" ? offset : 0 ),
|
||||
day = Math.min( inst.selectedDay, this._getDaysInMonth( year, month ) ) + ( period === "D" ? offset : 0 ),
|
||||
date = this._restrictMinMax( inst, this._daylightSavingAdjust( new Date( year, month, day ) ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user