mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
fixes humanreadable numbers in infinite scrolling
This commit is contained in:
@@ -140,10 +140,11 @@ define(function () {
|
|||||||
jQuery('#topics-container, .category-sidebar').removeClass('hidden');
|
jQuery('#topics-container, .category-sidebar').removeClass('hidden');
|
||||||
jQuery('#category-no-topics').remove();
|
jQuery('#category-no-topics').remove();
|
||||||
|
|
||||||
|
html = $(html);
|
||||||
container.append(html);
|
container.append(html);
|
||||||
|
|
||||||
$('#topics-container span.timeago').timeago();
|
$('#topics-container span.timeago').timeago();
|
||||||
app.makeNumbersHumanReadable($(html).find('.human-readable-number'));
|
app.makeNumbersHumanReadable(html.find('.human-readable-number'));
|
||||||
}
|
}
|
||||||
|
|
||||||
Category.loadMoreTopics = function(cid) {
|
Category.loadMoreTopics = function(cid) {
|
||||||
|
|||||||
@@ -89,9 +89,10 @@ define(function() {
|
|||||||
|
|
||||||
$('#category-no-topics').remove();
|
$('#category-no-topics').remove();
|
||||||
|
|
||||||
|
html = $(html);
|
||||||
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'));
|
||||||
}
|
}
|
||||||
|
|
||||||
Recent.loadMoreTopics = function() {
|
Recent.loadMoreTopics = function() {
|
||||||
|
|||||||
@@ -79,9 +79,10 @@ define(function() {
|
|||||||
|
|
||||||
$('#category-no-topics').remove();
|
$('#category-no-topics').remove();
|
||||||
|
|
||||||
|
html = $(html);
|
||||||
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