diff options
author | AndrewNewcomb <ext.github@preceptsoftware.co.uk> | 2010-09-09 21:31:45 +0800 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-09-09 21:54:24 +0800 |
commit | 590e03cc328879f67b2350b76b50ec34d559739e (patch) | |
tree | 33516f123a5876ee838c1e14c51377a009559c16 /ui | |
parent | 9a2dafa94828fc43537c6fbfd133be84ca55d04b (diff) | |
download | jquery-ui-590e03cc328879f67b2350b76b50ec34d559739e.tar.gz jquery-ui-590e03cc328879f67b2350b76b50ec34d559739e.zip |
datepicker: changed parseDate to be case insensitive. Fixed #6036 - datepicker: parseDate is case sensitive.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |