Fairly straight question:
If I have an inline datepicker (call .datepicker() on a div instead of an input) and use the beforeShowDay function, everything breaks.
I've created a jsFiddle here so you can test it: http://jsfiddle.net/MBwSe/1/
The beforeShowDay function works for the first 4 days to me (jul 29 to aug 01 2012) and then breaks on aug 02 2012 with this error:
TypeError: daySettings is undefined
[Break On This Error]
line 8827
var unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] ||
Any ideas what's going on? Driving me nuts!
You have to return an array from
beforeShowDay
. From the docs:Modified Fiddle: http://jsfiddle.net/MBwSe/2/