Skip to content

Commit 0cc96c7

Browse files
Fixes trentrichardson#86 - redraw calendar with given position
1 parent 3de1c5e commit 0cc96c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,8 @@ $.datepicker._selectDate = function (id, dateStr) {
10921092
var inst = this._getInst($(id)[0]),
10931093
tp_inst = this._get(inst, 'timepicker');
10941094

1095+
inst.drawMonth += inst.settings.showCurrentAtPos;
1096+
10951097
if (tp_inst) {
10961098
tp_inst._limitMinMaxDateTime(inst, true);
10971099
inst.inline = inst.stay_open = true;

0 commit comments

Comments
 (0)