Skip to main content

Search and Top Navigation

#7176 closed bug (fixed)

Opened March 21, 2011 03:12PM UTC

Closed April 04, 2011 11:55AM UTC

Last modified September 09, 2011 06:43PM UTC

Datepicker shows only single year in year dropdown if numberOfMonths > 1

Reported by: toebens Owned by:
Priority: minor Milestone: 1.8.12
Component: ui.datepicker Version: 1.8.11
Keywords: Cc:
Blocked by: Blocking:
Description

hi,

i'm using jquery 1.4.4 with latest stable ui (1.8.11).

when having a datepicker on a site and set the options:

numberOfMonths: 3,
changeMonth: true,
changeYear: true,
yearRange : '2007:2015'

the year dropdown only shows the current year.

if you set numberOfMonths to 1 it works - then it shows the options 2007 to 2015 in the select list.

http://jsfiddle.net/A6zPd/

Attachments (0)
Change History (8)

Changed March 22, 2011 04:12PM UTC by toebens comment:1

the dropdown contains only the currently shown year of the calendar. i tested this with the following browser:

Flock 2.5.6

Firefox 3.6.15

although in IE9, Opera 11.01 and safari 5.0.4 (7533.20.27) the dropdown is filled correctly!

Changed March 24, 2011 12:49PM UTC by scottgonzalez comment:2

#7194 is a duplicate of this ticket.

Changed April 01, 2011 04:06AM UTC by chris.rohr comment:3

Changed April 04, 2011 11:55AM UTC by Scott González comment:4

resolution: → fixed
status: newclosed

Datepicker: Only generate yearshtml once. Fixes #7176 - Datepicker shows only single year in year dropdown if numberOfMonths > 1.

Changeset: 98c53d8432990f2c674e3a1274141b64a87d8ee9

Changed April 04, 2011 11:57AM UTC by Scott González comment:5

Datepicker: Only generate yearshtml once. Fixes #7176 - Datepicker shows only single year in year dropdown if numberOfMonths > 1.

(cherry picked from commit 98c53d8432990f2c674e3a1274141b64a87d8ee9)

Changeset: a8fc3da62885c2d7c692e24f8416e320886e1e7b

Changed April 04, 2011 11:57AM UTC by scottgonzalez comment:6

milestone: 1.91.8.12

Changed May 13, 2011 08:43PM UTC by scottgonzalez comment:7

#7247 is a duplicate of this ticket.

Changed September 09, 2011 06:43PM UTC by scottgonzalez comment:8

#7709 is a duplicate of this ticket.