|
|
@ -195,12 +195,14 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
socket.emit('api:topic.followCheck', tid);
|
|
|
|
socket.emit('api:topic.followCheck', tid);
|
|
|
|
|
|
|
|
if(followEl[0]) {
|
|
|
|
followEl[0].addEventListener('click', function() {
|
|
|
|
followEl[0].addEventListener('click', function() {
|
|
|
|
socket.emit('api:topic.follow', tid);
|
|
|
|
socket.emit('api:topic.follow', tid);
|
|
|
|
}, false);
|
|
|
|
}, false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Infinite scrolling of posts
|
|
|
|
|
|
|
|
$(window).off('scroll').on('scroll', function() {
|
|
|
|
$(window).off('scroll').on('scroll', function() {
|
|
|
|
var bottom = (document.body.offsetHeight - $(window).height()) * 0.9;
|
|
|
|
var bottom = (document.body.offsetHeight - $(window).height()) * 0.9;
|
|
|
|
|
|
|
|
|
|
|
|