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

stepMinute can it be used when using drop downs? #890

Open Kunji opened 8 years ago

Kunji commented 8 years ago

The reason I'm asking is because at first glance it looks like you can but then it does not seem to work quite right. Instead of showing 00 and 30 as options it shows 00 and 030 as options. How do I get rid of the 0 before the 30?

Also I tried to set stepMinute to 5, 10 and 15 - on the drop down it seems to stop at whatever number is entered in to stepMinute and 10 and 15 have the 0 in front.

It would be nice if I could restrict choices in the minute drop down.

screen shot 2016-07-22 at 13 09 29
Kunji commented 8 years ago

I figured it out. I was putting stepMinute: '30' and that was causing the issue. Should be stepMinute: 30 (no quotes)