trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

Set value of picker on close #700

Open roman-e opened 10 years ago

roman-e commented 10 years ago

Hi

Here's a feature request or a bugfix which I think would be useful: When I open the timepicker, there's set a default time e.g. 12:00. If I'd like to choose this time and press close, the time doesn't get set in the textfield, so I need to change the time to another one first and set it back to 12:00 again to be able to store it in the coresponding textfield. Would it be possible to set the time on closing anyway instead only after the value on the wheel changed or can I get the selected value after closing programatically to set it by myself?

Thanks. Kind regards Roman