From 9ee250b59791ab9d7c37aafe73545d58b01d022d Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Fri, 6 Dec 2013 16:26:07 -0500 Subject: [PATCH] fixes humanreadable numbers in infinite scrolling --- public/src/forum/category.js | 3 ++- public/src/forum/recent.js | 3 ++- public/src/forum/unread.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/src/forum/category.js b/public/src/forum/category.js index 77daf9994c..44a11eaea9 100644 --- a/public/src/forum/category.js +++ b/public/src/forum/category.js @@ -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) { diff --git a/public/src/forum/recent.js b/public/src/forum/recent.js index 4614c2f404..6b162db34f 100644 --- a/public/src/forum/recent.js +++ b/public/src/forum/recent.js @@ -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() { diff --git a/public/src/forum/unread.js b/public/src/forum/unread.js index 60c4ba4953..6debeeba84 100644 --- a/public/src/forum/unread.js +++ b/public/src/forum/unread.js @@ -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() {