mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
datepicker: changed parseDate to be case insensitive. Fixed #6036 - datepicker: parseDate is case sensitive.
This commit is contained in:
parent
9a2dafa948
commit
590e03cc32
2
ui/jquery.ui.datepicker.js
vendored
2
ui/jquery.ui.datepicker.js
vendored
@ -982,7 +982,7 @@ $.extend(Datepicker.prototype, {
|
||||
var getName = function(match, shortNames, longNames) {
|
||||
var names = (lookAhead(match) ? longNames : shortNames);
|
||||
for (var i = 0; i < names.length; i++) {
|
||||
if (value.substr(iValue, names[i].length) == names[i]) {
|
||||
if (value.substr(iValue, names[i].length).toLowerCase() == names[i].toLowerCase()) {
|
||||
iValue += names[i].length;
|
||||
return i + 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user