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

Allow direct time input from widget #826

Closed insonifi closed 9 years ago

insonifi commented 9 years ago

Default behavior is the same, only difference is that disabled <input> element is used to display time. When {timeInput: true} option is provided, input is activated and allows direct input of time string. In case of invalid input value is reverted.

In my application original input is used to passively display date, since more fancy canvas graphics is used to render event occurrences. Still, I need way pinpoint arbitrary point in time (outside of canvas scope), and using direct input might be more natural than sliders (which I primarily use).

trentrichardson commented 9 years ago

Thanks for these changes. I made several revisions to the css, example so be sure to grab the updated code from dev.