Skip to content
Permalink
Browse files

Fixed #3859 - Datepicker can't pick years before 1999

  • Loading branch information...
Keith Wood
Keith Wood committed Jan 19, 2009
1 parent a91095e commit 9b116879328a1a3edfff0b1914871ca2595ecc30
Showing with 2 additions and 3 deletions.
  1. +2 −3 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);

0 comments on commit 9b11687

Please sign in to comment.
You can’t perform that action at this time.