Opened 14 years ago

Closed 14 years ago

#3089 closed bug (fixed)

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

Reported by: [email protected] 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.

Change History (3)

comment:1 Changed 14 years ago by kbwood

Owner: changed from grabanski to kbwood
Status: newassigned

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

comment:2 Changed 14 years ago by Cloudream

Milestone: 1.6
Priority: minorcritical

code on server is wrong, easy to fix.

comment:3 Changed 14 years ago by Cloudream

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.