Skip to content

Commit 9fa3845

Browse files
Fix gotoToday button click
1 parent 05baee4 commit 9fa3845

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,8 +986,11 @@ $.datepicker._doKeyUp = function (event) {
986986
//#######################################################################################
987987
$.datepicker._base_gotoToday = $.datepicker._gotoToday;
988988
$.datepicker._gotoToday = function(id) {
989+
var inst = this._getInst($(id)[0]),
990+
$dp = inst.dpDiv;
989991
this._base_gotoToday(id);
990992
this._setTime(this._getInst($(id)[0]), new Date());
993+
$( '.ui-datepicker-today', $dp).click();
991994
};
992995

993996
//#######################################################################################

0 commit comments

Comments
 (0)