mugifly / jquery-simple-datetimepicker

Date & time picker for jQuery, It's simple & clean.
http://mugifly.github.com/jquery-simple-datetimepicker
Other
260 stars 182 forks source link

Close a picker when date is selected (dateOnly mode) #75

Closed Kwozzie closed 10 years ago

Kwozzie commented 10 years ago

Close datepicker when closeOnSelected is true, inLine is false and dateOnly is specified. As it is, the DatePicker won't close if a date is selected and the timepicker is hidden.

smahs commented 10 years ago

Thanks Kwozzie, but only one condition is needed: if ($picker.data("closeOnSelected")){

Kwozzie commented 10 years ago

shemz, you are correct, however, this would allow the datepicker to be closed when the timepicker is showing and the user clicks on a date. I would have thought you would still want to force the user to have to click the time when the timepicker is showing?

mugifly commented 10 years ago

Thanks :+1: