From 590e03cc328879f67b2350b76b50ec34d559739e Mon Sep 17 00:00:00 2001 From: AndrewNewcomb Date: Thu, 9 Sep 2010 21:31:45 +0800 Subject: [PATCH] datepicker: changed parseDate to be case insensitive. Fixed #6036 - datepicker: parseDate is case sensitive. --- ui/jquery.ui.datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 27ffadbff..d1d8a4d11 100644 --- a/ui/jquery.ui.datepicker.js +++ b/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; } -- 2.39.5