Skip to content
Browse files

Remove left-over toLowerCase()s.

This was sort-of resolved by loopj/jquery-tokeninput#216, but the query
was still being lowercased in one place, meaning that the results were
not being rendered (!!) when the query contained uppercase chars.
  • Loading branch information...
1 parent 1273e68 commit 231af575d015a852d8ce8da228a13ae031e0965b @adammck adammck committed Dec 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery.tokeninput.js
View
2 src/jquery.tokeninput.js
@@ -795,7 +795,7 @@ $.TokenList = function (input, url_or_data, settings) {
cache.add(cache_key, settings.jsonContainer ? results[settings.jsonContainer] : results);
// only populate the dropdown if the results are associated with the active search query
- if(input_box.val().toLowerCase() === query) {
+ if(input_box.val() === query) {
populate_dropdown(query, settings.jsonContainer ? results[settings.jsonContainer] : results);
}
};

0 comments on commit 231af57

Please sign in to comment.
Something went wrong with that request. Please try again.