Skip to content

Commit 506e148

Browse files
Merge pull request trentrichardson#829 from carldiegelmann/dev
BugFix: Update input after pressing now button. Calls onSelectHandler in _gotoToday.
2 parents 650df7f + 477d2b5 commit 506e148

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery-ui-timepicker-addon.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,7 @@
15651565
};
15661566

15671567
/*
1568-
* override "Today" button to also grab the time.
1568+
* override "Today" button to also grab the time and set it to input field.
15691569
*/
15701570
$.datepicker._base_gotoToday = $.datepicker._gotoToday;
15711571
$.datepicker._gotoToday = function (id) {
@@ -1577,6 +1577,7 @@
15771577
now.setMinutes(now.getMinutes() + now.getTimezoneOffset() + tzoffset);
15781578
this._setTime(inst, now);
15791579
this._setDate(inst, now);
1580+
tp_inst._onSelectHandler();
15801581
};
15811582

15821583
/*

0 commit comments

Comments
 (0)