recent unread cleanup

This commit is contained in:
Baris Soner Usakli
2014-01-26 14:56:16 -05:00
parent c6d48f477c
commit 2560704839
5 changed files with 85 additions and 131 deletions

View File

@@ -396,6 +396,16 @@ var socket,
});
};
app.enableInfiniteLoading = function(callback) {
$(window).off('scroll').on('scroll', function() {
var bottom = ($(document).height() - $(window).height()) * 0.9;
if ($(window).scrollTop() > bottom) {
callback();
}
});
}
var titleObj = {
active: false,
interval: undefined,