Opened 14 years ago

Closed 14 years ago

Last modified 10 years ago

#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:


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

Attachments (1)

ui.datepicker.js (74.8 KB) - added by ruler 14 years ago.
Patched version of ui.datepicker.js

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by ruler

Attachment: ui.datepicker.js added

Patched version of ui.datepicker.js

comment:1 Changed 14 years ago by ruler

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 rdworth

Owner: changed from grabanski to kbwood
Status: newassigned

comment:3 Changed 14 years ago by kbwood

Resolution: wontfix
Status: assignedclosed

Date range functionality has been removed from the datepicker.

comment:4 Changed 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.