#7176 closed bug (fixed)
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.
Change History (8)
comment:1 Changed 12 years ago by
comment:3 Changed 12 years ago by
Sent pull request to fix this: https://github.com/chrisrohr/jquery-ui/commit/16de24b54a038b6c728555a0d9a9fd2da31ddc50
comment:4 Changed 12 years ago by
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
comment:5 Changed 12 years ago by
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
comment:6 Changed 12 years ago by
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!