Search and Top Navigation
#4927 closed feature (worksforme)
Opened October 27, 2009 09:23AM UTC
Closed December 01, 2009 01:40AM UTC
Last modified October 03, 2012 04:59PM UTC
Date Pick Restrictions
Reported by: | TheSmithz | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8 |
Component: | ui.datepicker | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It would be great if I could restrict which days are choosable in the date picker.
What I'd like is for the user NOT to be able to select saturdays or sundays ... obviously there's nothing to stop them from typing in the date directly into the form field, but would be great if they weren't choosable from the the datepicker.
Attachments (0)
Change History (3)
Changed November 16, 2009 08:13PM UTC by comment:1
milestone: | TBD → 1.next |
---|
Changed December 01, 2009 01:40AM UTC by comment:2
resolution: | → worksforme |
---|---|
status: | new → closed |
This is already available by using the beforeShowDay setting. There's even a built-in callback that disallows Saturdays and Sundays:
$(selector).datepicker({beforeShowDay: $.datepicker.noWeekends});
Changed October 03, 2012 04:59PM UTC by comment:3
milestone: | 1.next → 1.8 |
---|
We need to rewrite most of Datepicker to make things like this easily implementable on top.