This commit is contained in:
barisusakli
2014-04-04 12:42:41 -04:00
parent 640686f031
commit 0cd13b7b66
5 changed files with 169 additions and 94 deletions

View File

@@ -349,22 +349,10 @@ var socket,
});
};
app.scrollToTop = function () {
$('body,html').animate({
scrollTop: 0
});
};
app.scrollToBottom = function () {
$('body,html').animate({
scrollTop: $('html').height() - 100
});
};
var previousScrollTop = 0;
app.enableInfiniteLoading = function(callback) {
$(window).off('scroll').on('scroll', function() {
$(window).on('scroll', function() {
var top = $(window).height() * 0.1;
var bottom = ($(document).height() - $(window).height()) * 0.9;