continuouscalendar / jquery-continuous-calendar

Date picker and range selector with scrollable months instead of paged (the only right way to do it)
http://continuouscalendar.github.io/jquery-continuous-calendar/
85 stars 35 forks source link

disabledDates can be selected to a date range #50

Closed jjuutila closed 11 years ago

jjuutila commented 11 years ago

Setting the disabledDates parameter does not prevent selecting a range over disabled days. For example in the playground.html there are disabledDates "12/1/2012 12/2/2012 12/3/2012" and when selecting a range from 12/1 to 12/5 the range will be 12/1-12/5 (includes some disabled dates). Maybe the whole range selection should be cancelled if the range contains a disabled day.

eeroan commented 11 years ago

Is there a case of using disabled dates with ranges. The support was originally made for single date selections.

jjuutila commented 11 years ago

Yes there is. We want to prevent the user from selecting some dates for a range of days. Maybe the easiest way to implement this would be to cancel the range selection when user selects a range that contains a disabled day.

eeroan commented 11 years ago

Sounds good. I will accept that kind of pull request :)

jjuutila commented 11 years ago

Fixed.