diff options
author | claudi <hirt-claudia@gmx.de> | 2017-01-12 10:23:27 +0100 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2017-01-25 11:14:57 -0500 |
commit | 17404ced478a235651513fa7bef3473ef1b039e8 (patch) | |
tree | e3384cd6d248890be063d2a3367121943ba71191 /ui/widgets/datepicker.js | |
parent | 573e7e69c9b63752fb06a15d60ec2dded839e093 (diff) | |
download | jquery-ui-17404ced478a235651513fa7bef3473ef1b039e8.tar.gz jquery-ui-17404ced478a235651513fa7bef3473ef1b039e8.zip |
Datepicker: Fix prev/next button behavior with `showCurrentAtPos`
Fixes #15102
Closes gh-1784
Diffstat (limited to 'ui/widgets/datepicker.js')
-rw-r--r-- | ui/widgets/datepicker.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js index 1271de200..63f713ec0 100644 --- a/ui/widgets/datepicker.js +++ b/ui/widgets/datepicker.js @@ -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 ); }, |