mootools-datepicker icon indicating copy to clipboard operation
mootools-datepicker copied to clipboard

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

Open chanind opened this issue 13 years ago • 1 comments

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?

chanind avatar Jan 19 '12 08:01 chanind

:+1:

arian avatar Apr 04 '13 21:04 arian