Skip to content

Commit

Permalink
Merge pull request loopj#231 from adammck/no_really_dont_lowercase_th…
Browse files Browse the repository at this point in the history
…e_search_term

Fix results when query contains uppercase characters
  • Loading branch information
loopj committed Dec 6, 2011
2 parents 1273e68 + 231af57 commit ef52bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.tokeninput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
Expand Down

0 comments on commit ef52bcd

Please sign in to comment.