tamble / jquery-ui-daterangepicker

A JQuery UI based date range picker.
MIT License
184 stars 108 forks source link

Unable to select range when using beforeShowDay #9

Closed digitalredefned closed 9 years ago

digitalredefned commented 9 years ago

I've got an example at http://git.digitalredefined.com/ that is using the plugin and to disablel unavailable days, I'm using a function called by beforeShowDay. When I don't use the method, I am able to select a date range. But, when I use the method I can only select a single day. No errors in console and method working as designed. Any help/thoughts appreciated.

Jim

op16 commented 9 years ago

That is because of a bug in our code. We use the beforeShowDay function for the range selection, but try to take into account the one passed as a param be users.

But the resulting class name is missing a space in the concat: result[1] + userResult[1]

I'll release a fix later. Thanks for your report.

digitalredefned commented 9 years ago

Works great, thanks!