Skip to content

Commit 891fdb1

Browse files
committed
Update jquery-ui-timepicker-addon.js
Fixed a big bug on the "go to today" functionnality. When the month is not the current month, the date change didn't work, because the div ".ui-datepicker-today" was not there.
1 parent ab0ea75 commit 891fdb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery-ui-timepicker-addon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,8 @@
15351535
selectLocalTimezone(tp_inst);
15361536
var now = new Date();
15371537
this._setTime(inst, now);
1538-
$('.ui-datepicker-today', $dp).click();
1538+
this._setDate(inst, now);
1539+
this._hideDatepicker($(id)[0]);
15391540
};
15401541

15411542
/*

0 commit comments

Comments
 (0)