Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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
base: master
Choose a base branch
from

Conversation

chanind
Copy link

@chanind 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?

@arian
Copy link
Owner

arian commented Apr 4, 2013

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants