summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-20 14:19:00 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-07-20 23:38:49 +0200
commit89ee10a536c179bfaf603467891470ac03eaa342 (patch)
tree3ddc3ae8e24f9747b677e0560a0689761adfa558
parent4877cd050b29e5868bb07f113b8bcf2a7ced5e1e (diff)
downloadnextcloud-server-89ee10a536c179bfaf603467891470ac03eaa342.tar.gz
nextcloud-server-89ee10a536c179bfaf603467891470ac03eaa342.zip
Jsunit fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--apps/files/js/filelist.js3
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);
},
/**