jQuery UI Timepicker
Requirements :
- jQuery 1.4.2 (probably works with previous versions)
- jQuery UI Core (included in jquery-ui-x.x.x.custom.min.js)
- jQuery UI Theme.css (included in jquery-ui-x.x.x.custom.css)
- jquery.ui.timepicker.js
- jquery-ui-timepicker.css
To Do :
- Detect a second click on the same cell and close the picker (ie: the user selected hours and do not want to select different minutes or vice versa, and click twice on the same cell instead) This is already simulated with the handling of the double click.
- Documentation (*shrug*). See source code for usage.
Sample usage :$(document).ready(function() { $('#timepicker').timepicker({ onClose: function(time, inst) { alert('onClose triggered with time : ' + time + ' for instance id : ' + inst.id); }, onSelect: function(time, inst) { alert('onSelect triggered with time : ' + time + ' for instance id : ' + inst.id); } }); });
--
Francois Gelinas