Fix gotoToday button click
This commit is contained in:
parent
05baee4625
commit
9fa3845513
1 changed files with 3 additions and 0 deletions
3
jquery-ui-timepicker-addon.js
vendored
3
jquery-ui-timepicker-addon.js
vendored
|
@ -986,8 +986,11 @@ $.datepicker._doKeyUp = function (event) {
|
|||
//#######################################################################################
|
||||
$.datepicker._base_gotoToday = $.datepicker._gotoToday;
|
||||
$.datepicker._gotoToday = function(id) {
|
||||
var inst = this._getInst($(id)[0]),
|
||||
$dp = inst.dpDiv;
|
||||
this._base_gotoToday(id);
|
||||
this._setTime(this._getInst($(id)[0]), new Date());
|
||||
$( '.ui-datepicker-today', $dp).click();
|
||||
};
|
||||
|
||||
//#######################################################################################
|
||||
|
|
Loading…
Reference in a new issue