summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJonathan Matthews <54287723+jmattt@users.noreply.github.com>2019-08-19 15:18:05 -0400
committerGitHub <noreply@github.com>2019-08-19 15:18:05 -0400
commit1ae45bdaa167b3696ebe5100a76d9359d0cb80a8 (patch)
tree57cd74d42206ec355bfc0ce3799676593edbf48e /apps/files
parent1521da14ff292cb257f442a5f16c41b29faec337 (diff)
downloadnextcloud-server-1ae45bdaa167b3696ebe5100a76d9359d0cb80a8.tar.gz
nextcloud-server-1ae45bdaa167b3696ebe5100a76d9359d0cb80a8.zip
Fix grid view
Signed-off-by: Jonathan Matthews <jgit@pixelnet.work>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 7a6665b0807..dc875d40c12 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -672,6 +672,11 @@
.addClass(show ? 'icon-toggle-filelist' : 'icon-toggle-pictures')
$('.list-container').toggleClass('view-grid', show);
+ if (show) {
+ // If switching into grid view from list view, too few files might be displayed
+ // Try rendering the next page
+ this._onScroll();
+ }
},
/**