Datepicker: Fix prev/next button behavior with showCurrentAtPos

Fixes #15102
Closes gh-1784
This commit is contained in:
claudi 2017-01-12 10:23:27 +01:00 committed by Scott González
parent 573e7e69c9
commit 17404ced47

View File

@ -988,9 +988,7 @@ $.extend( Datepicker.prototype, {
if ( this._isDisabledDatepicker( target[ 0 ] ) ) {
return;
}
this._adjustInstDate( inst, offset +
( period === "M" ? this._get( inst, "showCurrentAtPos" ) : 0 ), // undo positioning
period );
this._adjustInstDate( inst, offset, period );
this._updateDatepicker( inst );
},