mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-19 15:00:22 +01:00
This commit is contained in:
@@ -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() {
|
function addBlockQuoteHandler() {
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ module.exports = function (utils, Benchpress, relative_path) {
|
|||||||
userAgentIcons,
|
userAgentIcons,
|
||||||
buildAvatar,
|
buildAvatar,
|
||||||
increment,
|
increment,
|
||||||
|
lessthan,
|
||||||
|
greaterthan,
|
||||||
generateWroteReplied,
|
generateWroteReplied,
|
||||||
generateRepliedTo,
|
generateRepliedTo,
|
||||||
generateWrote,
|
generateWrote,
|
||||||
@@ -328,6 +330,14 @@ module.exports = function (utils, Benchpress, relative_path) {
|
|||||||
return String(value + parseInt(inc, 10));
|
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) {
|
function generateWroteReplied(post, timeagoCutoff) {
|
||||||
if (post.toPid) {
|
if (post.toPid) {
|
||||||
return generateRepliedTo(post, timeagoCutoff);
|
return generateRepliedTo(post, timeagoCutoff);
|
||||||
|
|||||||
Reference in New Issue
Block a user