Fixes highlight

This commit is contained in:
nikolark committed 2015-01-25 22:19:40 +01:00
1 parent b22e954860
commit 166c49c782
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -56,9 +56,9 @@
hits = _.filter(members, function(el) {
var matches = re_term.test($(el).text());
if(matches) {
$(el).parent().addClass('highlight');
$(el).parent().parent().addClass('highlight');
} else {
$(el).parent().removeClass('highlight');
$(el).parent().parent().removeClass('highlight');
}
return matches;
});
+2 -2
View File
@@ -56,9 +56,9 @@
hits = _.filter(members, function(el) {
var matches = re_term.test($(el).text());
if(matches) {
$(el).parent().addClass('highlight');
$(el).parent().parent().addClass('highlight');
} else {
$(el).parent().removeClass('highlight');
$(el).parent().parent().removeClass('highlight');
}
return matches;
});