Skip to main content

Search and Top Navigation

#3089 closed bug (fixed)

Opened July 10, 2008 11:03PM UTC

Closed August 25, 2008 12:45PM UTC

ui.datepicker day-by-day example is broken (beforeShowDay)

Reported by: Owned by: kbwood
Priority: critical Milestone: 1.7
Component: ui.datepicker Version: 1.5.1
Keywords: day-by-day, datepicker, beforeShowDay Cc:
Blocked by: Blocking:

I was trying to use jquery's ui.datepicker's day-by-day feature to highlight certain days. The documentation on the website ( ) has a bug in it, which prevents it from actually working.

in the example's source, one of the options to the datepicker function is:

beforeShowDay: $.datepicker.nationalDays,

which implies that datepicker has a built in function for nationalDays, but it doesn't. I suspect this was a copy and paste error from using the 'noWeekends' built in function, but here is the proper line of code to use:

beforeShowDay: nationalDays,

which does indeed highlight the national holidays as different colours.

Attachments (0)
Change History (3)

Changed July 16, 2008 04:51PM UTC by kbwood comment:1

owner: grabanskikbwood
status: newassigned

The checked in code does read 'beforeShowDay: nationalDays,'. I don't know where the change is coming from.

Changed August 16, 2008 08:03PM UTC by Cloudream comment:2

milestone: → 1.6
priority: minorcritical

code on server is wrong, easy to fix.

Changed August 25, 2008 12:45PM UTC by Cloudream comment:3

resolution: → fixed
status: assignedclosed