Node.js based forum software built for the modern web
fix: #7751, make necro separator a partial
Barış Soner Uşaklı2b70e86f21ee
diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.jsindex b1efa1f4be..48ff691bf3 100644--- a/public/src/client/topic/posts.js+++ b/public/src/client/topic/posts.js@@ -272,12 +272,11 @@ define('forum/topic/posts', [if (diff >= necroThreshold) {var ago = $.timeago.settings.strings.suffixAgo;$.timeago.settings.strings.suffixAgo = '';- $('<aside>').addClass('necro-post')- .append($('<span>').translateText('[[topic:timeago_later,' + $.timeago.inWords(diff) + ']]'))- .append($('<hr>'))- .prependTo(post);-+ var translationText = '[[topic:timeago_later,' + $.timeago.inWords(diff) + ']]';$.timeago.settings.strings.suffixAgo = ago;+ app.parseAndTranslate('partials/topic/necro-post', { text: translationText }, function (html) {+ html.prependTo(post);+ });}});}