Skip to content

Commit aaca71e

Browse files
committed
BugFix: Update input after pressing now button.
1 parent 650df7f commit aaca71e

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
@@ -1564,7 +1564,7 @@
15641564
return $.datepicker._base_doKeyUp(event);
15651565
};
15661566

1567-
/*
1567+
/*
15681568
* override "Today" button to also grab the time.
15691569
*/
15701570
$.datepicker._base_gotoToday = $.datepicker._gotoToday;
@@ -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)