1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +00:00

[dir view] fixed 'loading more'

This commit is contained in:
llj
2016-08-05 14:21:28 +08:00
parent 2f1eb4e7f7
commit a62dc674d3

View File

@@ -1236,8 +1236,7 @@ define([
onWindowScroll: function () {
// 'more'
if (this.dir.dirent_more &&
$(window).scrollTop() + $(window).height() > $(document).height() - $('#footer').outerHeight(true)) {
$(window).scrollTop() + $(window).height() == $(document).height()) { // scroll to the bottom
this.render_dirents_slice(this.dir.last_start, this.dir.limit);
this.getImageThumbnail();
}