From 070ae3516146e5896c8e27157a0d8a571d303ce8 Mon Sep 17 00:00:00 2001 From: discomrade Date: Sun, 30 Jan 2022 09:12:09 -0100 Subject: [PATCH] Remove redundant subject check in catalog-search.js The comment selection included it. --- js/catalog-search.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/catalog-search.js b/js/catalog-search.js index f95319c3..457a9da4 100644 --- a/js/catalog-search.js +++ b/js/catalog-search.js @@ -21,11 +21,10 @@ if (active_page == 'catalog') { //search and hide none matching threads function filter(search_term) { $('.replies').each(function () { - var subject = $(this).children('.intro').text().toLowerCase(); var comment = $(this).clone().children().slice(0,2).remove().end().end().text().trim().toLowerCase(); search_term = search_term.toLowerCase(); - if (subject.indexOf(search_term) == -1 && comment.indexOf(search_term) == -1) { + if (comment.indexOf(search_term) == -1) { $(this).parents('div[id="Grid"]>.mix').css('display', 'none'); } else { $(this).parents('div[id="Grid"]>.mix').css('display', 'inline-block');