X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2Fhead.html;h=723f333a5a9db76606caffa83298649b785c13e2;hb=c86c161825115605e870e3b9fa8380080a8e0293;hp=8f7aa480e8ee6f80d4222c9d805bccf90ad401ba;hpb=474468d90d28b2fcea8776fc1dfc74c0972b55e0;p=Sone.git diff --git a/src/main/resources/templates/include/head.html b/src/main/resources/templates/include/head.html index 8f7aa48..723f333 100644 --- a/src/main/resources/templates/include/head.html +++ b/src/main/resources/templates/include/head.html @@ -55,10 +55,15 @@ $("#sone .post .replies").each(function() { allReplies = $(this).find(".reply"); if (allReplies.length > 2) { + newHidden = false; for (replyIndex = 0; replyIndex < (allReplies.length - 2); ++replyIndex) { $(allReplies[replyIndex]).addClass("hidden"); + newHidden |= $(allReplies[replyIndex]).hasClass("new"); } clickToShowElement = $("
").addClass("click-to-show"); + if (newHidden) { + clickToShowElement.addClass("new"); + } (function(clickToShowElement, allReplies) { getTranslation("WebInterface.ClickToShow.Replies", function(text) { clickToShowElement.text(text);