fixes humanreadable numbers in infinite scrolling

v1.18.x
Baris Usakli 11 years ago
parent 074d7e7c8d
commit 9ee250b597

@ -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() {

Loading…
Cancel
Save