Disable only Sundays instead of weekends

Modifies the standard Date Prompt to open an interactive calendar in a small overlay.
Post Reply
norman
Site Admin
Posts: 1238
Joined: Sat Feb 07, 2004 9:55 pm

Disable only Sundays instead of weekends

Post by norman » Wed Sep 11, 2013 11:08 pm

To change Datepicker's "No Weekends" functionality to become "No Sundays", do the following:

Go to Design / Library / Layouts / Datepicker / Datepicker Setup.
Look for the line:

Code: Select all

    var noWeekend = $.datepicker.noWeekends(date);
Change it to be:

Code: Select all

    var noWeekend = [date.getDay() != 0, ''];
That's it. The "No Weekends" setting will now operate as "No Sundays".
Norman

Post Reply