From a62dc674d3d6373b62beed0d43684632aa6a497c Mon Sep 17 00:00:00 2001 From: llj Date: Fri, 5 Aug 2016 14:21:28 +0800 Subject: [PATCH] [dir view] fixed 'loading more' --- static/scripts/app/views/dir.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/scripts/app/views/dir.js b/static/scripts/app/views/dir.js index 2c0b5b6e51..a3aa3df724 100644 --- a/static/scripts/app/views/dir.js +++ b/static/scripts/app/views/dir.js @@ -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(); }