diff options
author | Keith Wood <kbwood.au@gmail.com> | 2009-01-19 10:06:49 +0000 |
---|---|---|
committer | Keith Wood <kbwood.au@gmail.com> | 2009-01-19 10:06:49 +0000 |
commit | 9b116879328a1a3edfff0b1914871ca2595ecc30 (patch) | |
tree | 3d92c00a3645fb9033590d01c0947c461db442bf | |
parent | a91095e60dd610aadde5eb4f1ef87302490d36f3 (diff) | |
download | jquery-ui-9b116879328a1a3edfff0b1914871ca2595ecc30.tar.gz jquery-ui-9b116879328a1a3edfff0b1914871ca2595ecc30.zip |
Fixed #3859 - Datepicker can't pick years before 1999
-rw-r--r-- | ui/ui.datepicker.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index a8ccd8ef3..6ec694e47 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -1450,9 +1450,8 @@ $.extend(Datepicker.prototype, { year = drawYear - 10; endYear = drawYear + 10; } else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') { - year = endYear = new Date().getFullYear(); - year += parseInt(years[0], 10); - endYear += parseInt(years[1], 10); + year = drawYear + parseInt(years[0], 10); + endYear = drawYear + parseInt(years[1], 10); } else { year = parseInt(years[0], 10); endYear = parseInt(years[1], 10); |