fixes humanreadable numbers in infinite scrolling

This commit is contained in:
Baris Usakli
2013-12-06 16:26:07 -05:00
parent 074d7e7c8d
commit 9ee250b597
3 changed files with 6 additions and 3 deletions

View File

@@ -140,10 +140,11 @@ define(function () {
jQuery('#topics-container, .category-sidebar').removeClass('hidden');
jQuery('#category-no-topics').remove();
html = $(html);
container.append(html);
$('#topics-container span.timeago').timeago();
app.makeNumbersHumanReadable($(html).find('.human-readable-number'));
app.makeNumbersHumanReadable(html.find('.human-readable-number'));
}
Category.loadMoreTopics = function(cid) {

View File

@@ -89,9 +89,10 @@ define(function() {
$('#category-no-topics').remove();
html = $(html);
container.append(html);
$('span.timeago').timeago();
app.makeNumbersHumanReadable($(html).find('.human-readable-number'));
app.makeNumbersHumanReadable(html.find('.human-readable-number'));
}
Recent.loadMoreTopics = function() {

View File

@@ -79,9 +79,10 @@ define(function() {
$('#category-no-topics').remove();
html = $(html);
container.append(html);
$('span.timeago').timeago();
app.makeNumbersHumanReadable($(html).find('.human-readable-number'));
app.makeNumbersHumanReadable(html.find('.human-readable-number'));
}
function loadMoreTopics() {