#3499 closed feature (wontfix)
selectWeek to accompany highlightWeek option
Reported by: | bavinckp | Owned by: | kbwood |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.datepicker | Version: | 1.6rc2 |
Keywords: | select week range | Cc: | |
Blocked by: | Blocking: |
Description
To accompany the highlightWeek feature, it would be a nice addition to the datpicker component if it could automatically select the entire week as its selected range when a single date is clicked.
This would show the week as selected as the datepicker already shows the current date range.
I have not found another easy way to do this as the datepicker requires a second date (click) when in range mode. See also my post on google groups http://groups.google.com/group/jquery-ui/browse_thread/thread/eea21ce21dc478fb/7d87f155a40f470c#7d87f155a40f470c
Attachments (1)
Change History (5)
Changed 14 years ago by
Attachment: | ui.datepicker.js added |
---|
comment:1 Changed 14 years ago by
I have already implemented this. Changes are:
- addition of a _selectWeek function at line 467
- Addition of "week_extra" and checking for valid selectable weeks in _generateHTML function
New option is "selectWeek", and must also have "rangeSelect" true to work.
{selectWeek: true, rangeSelect: true}
Hope this patch can make it in, be nice not to diff when there's new releases.
comment:2 Changed 14 years ago by
Owner: | changed from grabanski to kbwood |
---|---|
Status: | new → assigned |
comment:3 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Date range functionality has been removed from the datepicker.
Patched version of ui.datepicker.js