Skip to content

Commit 9cfc82b

Browse files
Merge pull request trentrichardson#753 from ylorant/dev
Update jquery-ui-timepicker-addon.js - fixes "go to today" functionality when not the current month date change doesn't work since ".ui-datepicker-today" class was not there.
2 parents 86b5496 + 891fdb1 commit 9cfc82b

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
@@ -1538,7 +1538,8 @@
15381538
selectLocalTimezone(tp_inst);
15391539
var now = new Date();
15401540
this._setTime(inst, now);
1541-
$('.ui-datepicker-today', $dp).click();
1541+
this._setDate(inst, now);
1542+
this._hideDatepicker($(id)[0]);
15421543
};
15431544

15441545
/*

0 commit comments

Comments
 (0)