datepicker: changed parseDate to be case insensitive. Fixed #6036 - datepicker: parseDate is case sensitive.

This commit is contained in:
AndrewNewcomb 2010-09-09 21:31:45 +08:00 committed by Scott González
parent 9a2dafa948
commit 590e03cc32

View File

@ -982,7 +982,7 @@ $.extend(Datepicker.prototype, {
var getName = function(match, shortNames, longNames) { var getName = function(match, shortNames, longNames) {
var names = (lookAhead(match) ? longNames : shortNames); var names = (lookAhead(match) ? longNames : shortNames);
for (var i = 0; i < names.length; i++) { 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; iValue += names[i].length;
return i + 1; return i + 1;
} }