diff options
Diffstat (limited to 'ui/ui.autocomplete.js')
-rw-r--r-- | ui/ui.autocomplete.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/ui.autocomplete.js b/ui/ui.autocomplete.js index b065f093c..52e5bbb40 100644 --- a/ui/ui.autocomplete.js +++ b/ui/ui.autocomplete.js @@ -425,7 +425,7 @@ $.Autocompleter.Cache = function(options) { var length = 0; function matchSubset(s, sub) { - if (!options.matchCase) + if (!options.matchCase) s = s.toLowerCase(); var i = s.indexOf(sub); if (i == -1) return false; @@ -466,7 +466,7 @@ $.Autocompleter.Cache = function(options) { var firstChar = value.charAt(0).toLowerCase(); // if no lookup array for this character exists, look it up now - if( !stMatchSets[firstChar] ) + if( !stMatchSets[firstChar] ) stMatchSets[firstChar] = []; // if the match is a string @@ -581,7 +581,7 @@ $.Autocompleter.Select = function (options, input, select, config) { list = $("<ul/>").appendTo(element).mouseover( function(event) { if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') { active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event)); - $(target(event)).addClass(CLASSES.ACTIVE); + $(target(event)).addClass(CLASSES.ACTIVE); } }).click(function(event) { $(target(event)).addClass(CLASSES.ACTIVE); |