aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/datepicker.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widgets/datepicker.js')
-rw-r--r--ui/widgets/datepicker.js4
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 );
},