From 2425f3b671ef1f286740f21cac788c206cef8546 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 17 Oct 2025 16:23:50 -0400 Subject: [PATCH] https://github.com/NodeBB/NodeBB/issues/13713 --- public/src/client/topic.js | 6 ++++++ public/src/modules/helpers.common.js | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/public/src/client/topic.js b/public/src/client/topic.js index 5ee1f91f60..bdebc50264 100644 --- a/public/src/client/topic.js +++ b/public/src/client/topic.js @@ -206,6 +206,12 @@ define('forum/topic', [ }); } }); + + $('[component="topic/thumb/list/expand"]').on('click', function () { + const btn = $(this); + btn.parents('[component="topic/thumb/list"]').removeClass('thumbs-collapsed'); + btn.remove(); + }); } function addBlockQuoteHandler() { diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.js index 896d0b485b..6df32ea76e 100644 --- a/public/src/modules/helpers.common.js +++ b/public/src/modules/helpers.common.js @@ -25,6 +25,8 @@ module.exports = function (utils, Benchpress, relative_path) { userAgentIcons, buildAvatar, increment, + lessthan, + greaterthan, generateWroteReplied, generateRepliedTo, generateWrote, @@ -328,6 +330,14 @@ module.exports = function (utils, Benchpress, relative_path) { return String(value + parseInt(inc, 10)); } + function lessthan(a, b) { + return parseInt(a, 10) < parseInt(b, 10); + } + + function greaterthan(a, b) { + return parseInt(a, 10) > parseInt(b, 10); + } + function generateWroteReplied(post, timeagoCutoff) { if (post.toPid) { return generateRepliedTo(post, timeagoCutoff);