Permalink
Browse files

datepicker: changed parseDate to be case insensitive. Fixed #6036 - d…

…atepicker: parseDate is case sensitive.
  • Loading branch information...
1 parent 9a2dafa commit 590e03cc328879f67b2350b76b50ec34d559739e @AndrewNewcomb AndrewNewcomb committed with scottgonzalez Sep 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.datepicker.js
View
2 ui/jquery.ui.datepicker.js
@@ -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;
}

0 comments on commit 590e03c

Please sign in to comment.