arian/mootools-datepicker — pull request #97 by chanind (2012-01-19 08:49:59+00:00)
Title: Adding ampm option to enable 12hr time select for the time picker

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?