mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed #3859 - Datepicker can't pick years before 1999
This commit is contained in:
parent
a91095e60d
commit
9b11687932
@ -1450,9 +1450,8 @@ $.extend(Datepicker.prototype, {
|
|||||||
year = drawYear - 10;
|
year = drawYear - 10;
|
||||||
endYear = drawYear + 10;
|
endYear = drawYear + 10;
|
||||||
} else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') {
|
} else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') {
|
||||||
year = endYear = new Date().getFullYear();
|
year = drawYear + parseInt(years[0], 10);
|
||||||
year += parseInt(years[0], 10);
|
endYear = drawYear + parseInt(years[1], 10);
|
||||||
endYear += parseInt(years[1], 10);
|
|
||||||
} else {
|
} else {
|
||||||
year = parseInt(years[0], 10);
|
year = parseInt(years[0], 10);
|
||||||
endYear = parseInt(years[1], 10);
|
endYear = parseInt(years[1], 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user