From 89ee10a536c179bfaf603467891470ac03eaa342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Fri, 20 Jul 2018 14:19:00 +0200 Subject: [PATCH] Jsunit fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- apps/files/js/filelist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }, /**