Skip to main content

Search and Top Navigation

#6747 closed bug (notabug)

Opened December 13, 2010 10:49PM UTC

Closed December 14, 2010 01:12AM UTC

yearRange option relative to today's year returns a single year

Reported by: ericlanehart Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.datepicker Version: 1.8
Keywords: Cc:
Blocked by: Blocking:
Description

When setting the yearRange option to a range in the style of '-40:2', only a single year is returned in the dropdown menu enabled with changeYear. The year is the oldest year that would have otherwise been returned as an option. Changing the format to double digits doesn't have an effect. This bug seems to have been introduced in 1.4.0/1.8.0, as this option worked in 1.3.2/1.7.3.

Compare:

to:

Attachments (0)
Change History (1)

Changed December 14, 2010 01:12AM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

"-40:2" means all the years beween 40 years ago and the year 2. What you want is "-40:+2"