diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-20 14:19:00 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-07-20 23:38:49 +0200 |
commit | 89ee10a536c179bfaf603467891470ac03eaa342 (patch) | |
tree | 3ddc3ae8e24f9747b677e0560a0689761adfa558 /apps | |
parent | 4877cd050b29e5868bb07f113b8bcf2a7ced5e1e (diff) | |
download | nextcloud-server-89ee10a536c179bfaf603467891470ac03eaa342.tar.gz nextcloud-server-89ee10a536c179bfaf603467891470ac03eaa342.zip |
Jsunit fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index b558e439e2e..fd20ebe8321 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -99,11 +99,12 @@ /** * Number of files per page + * Always show a minimum of 1 * * @return {int} page size */ pageSize: function() { - return Math.ceil(this.$container.height() / 50); + return Math.max(Math.ceil(this.$container.height() / 50), 1); }, /** |