Disable only Sundays instead of weekends
Posted: 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:
Change it to be:
That's it. The "No Weekends" setting will now operate as "No Sundays".
Go to Design / Library / Layouts / Datepicker / Datepicker Setup.
Look for the line:
Code: Select all
var noWeekend = $.datepicker.noWeekends(date);
Code: Select all
var noWeekend = [date.getDay() != 0, ''];