mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 19:01:42 +00:00
[dir view] fixed 'loading more'
This commit is contained in:
@@ -1236,8 +1236,7 @@ define([
|
|||||||
onWindowScroll: function () {
|
onWindowScroll: function () {
|
||||||
// 'more'
|
// 'more'
|
||||||
if (this.dir.dirent_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.render_dirents_slice(this.dir.last_start, this.dir.limit);
|
||||||
this.getImageThumbnail();
|
this.getImageThumbnail();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user