Correctly highlight Topics With Caps when narrowed

(imported from commit d3ec5b246c2e6624cf9ff5359f54f9127fbd8483)
This commit is contained in:
Scott Feeney 2013-08-02 18:18:04 -04:00
parent 666ce4333e
commit f4e9a16989
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ exports.sort_narrow_list = function () {
function iterate_to_find(selector, name_to_find, context) {
var lowercase_name = name_to_find.toLowerCase();
var found = _.find($(selector, context), function (elem) {
return $(elem).attr('data-name') === lowercase_name;
return $(elem).attr('data-name').toLowerCase() === lowercase_name;
});
return found ? $(found) : $();
}