mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +00:00
[dir view] fixed 'loading more'
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user