fix: #7751, make necro separator a partial

v1.18.x
Barış Soner Uşaklı 6 years ago
parent 8394a0fd58
commit 2b70e86f21

@ -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);
});
}
});
}

Loading…
Cancel
Save