]> source.dussan.org Git - jquery-ui.git/commitdiff
datepicker: changed parseDate to be case insensitive. Fixed #6036 - datepicker: parse...
authorAndrewNewcomb <ext.github@preceptsoftware.co.uk>
Thu, 9 Sep 2010 13:31:45 +0000 (21:31 +0800)
committerScott González <scott.gonzalez@gmail.com>
Thu, 9 Sep 2010 13:54:24 +0000 (21:54 +0800)
ui/jquery.ui.datepicker.js

index 27ffadbff00e932190c37a58a37c445aec3059f1..d1d8a4d11ad88f0f62f8ae50e0c931911ede06ba 100644 (file)
@@ -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;
                                }