From 889ca595b05f32c787608f1e5acacc9ccef854e4 Mon Sep 17 00:00:00 2001 From: claudi Date: Thu, 12 Jan 2017 10:23:27 +0100 Subject: [PATCH] Update datepicker.js Removed addition of showCurrentAtPos to offset calling adjustInstDate Bug 15094 --- ui/widgets/datepicker.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js index 1271de20092..63f713ec026 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 ); },