This commit is contained in:
Baris Soner Usakli
2013-11-26 23:55:55 -05:00
parent 31635b92f3
commit 3a8dca6fb9
2 changed files with 11 additions and 7 deletions

View File

@@ -1,9 +1,8 @@
define(function() {
var Unread = {};
var Unread = {},
loadingMoreTopics = false;
Unread.init = function() {
var loadingMoreTopics = false;
app.enter_room('recent_posts');
ajaxify.register_events([
@@ -109,8 +108,9 @@ define(function() {
});
if ($("body").height() <= $(window).height() && $('#topics-container').children().length >= 20)
if ($("body").height() <= $(window).height() && $('#topics-container').children().length >= 20) {
$('#load-more-btn').show();
}
$('#load-more-btn').on('click', function() {
loadMoreTopics();