mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 09:55:47 +01:00
added translation to unread infinite loader
This commit is contained in:
@@ -74,15 +74,18 @@ define(function() {
|
|||||||
|
|
||||||
var html = templates.prepare(templates['unread'].blocks['topics']).parse({
|
var html = templates.prepare(templates['unread'].blocks['topics']).parse({
|
||||||
topics: topics
|
topics: topics
|
||||||
}),
|
});
|
||||||
container = $('#topics-container');
|
|
||||||
|
translator.translate(html, function(translatedHTML) {
|
||||||
|
var container = $('#topics-container');
|
||||||
|
|
||||||
$('#category-no-topics').remove();
|
$('#category-no-topics').remove();
|
||||||
|
|
||||||
html = $(html);
|
html = $(translatedHTML);
|
||||||
container.append(html);
|
container.append(html);
|
||||||
$('span.timeago').timeago();
|
$('span.timeago').timeago();
|
||||||
app.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
app.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadMoreTopics() {
|
function loadMoreTopics() {
|
||||||
|
|||||||
Reference in New Issue
Block a user