Skip to main content

Search and Top Navigation

#3499 closed feature (wontfix)

Opened October 22, 2008 08:28AM UTC

Closed April 07, 2009 06:56AM UTC

Last modified October 11, 2012 09:15PM UTC

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)
  • ui.datepicker.js (74.8 KB) - added by ruler November 06, 2008 09:05PM UTC.

    Patched version of ui.datepicker.js

Change History (4)

Changed November 06, 2008 09:07PM UTC by ruler comment:1

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.

Changed November 19, 2008 03:15AM UTC by rdworth comment:2

owner: grabanskikbwood
status: newassigned

Changed April 07, 2009 06:56AM UTC by kbwood comment:3

resolution: → wontfix
status: assignedclosed

Date range functionality has been removed from the datepicker.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:4

milestone: TBD

Milestone TBD deleted