Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Adding ampm option to enable 12hr time select for the time picker #97

Open
wants to merge 4 commits into
from

Conversation

Projects
None yet
2 participants

chanind commented Jan 19, 2012

Enabling the ampm option allows the user to use 12 hour time as input in the timepicker. This is accomplished by adding an "AM PM" radio button below the hour and minute in the timepicker.

I added a demo page for this feature under Test/timepicker12hr.html. I also modified the css for each theme to allow this to work.

As a side note:
I ran into a bizarre issue where the am/pm radio buttons were getting instantly reset after the user clicks on them. I got around this by delaying the change of the radio buttons by 100ms after the user click on them, which works but is kind of a hack. Regardless, I can't figure out what in the source could be causing this weird resetting behavior. Any ideas what could be the cause?

Owner

arian commented Apr 4, 2013

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment