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.
Attachments (0)
Change History (8)
Changed March 22, 2011 04:12PM UTC by comment:1
Changed April 01, 2011 04:06AM UTC by comment:3
Sent pull request to fix this: https://github.com/chrisrohr/jquery-ui/commit/16de24b54a038b6c728555a0d9a9fd2da31ddc50
Changed April 04, 2011 11:55AM UTC by comment:4
resolution: | → fixed |
---|---|
status: | new → closed |
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 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 comment:6
milestone: | 1.9 → 1.8.12 |
---|
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!