From f456f1e95566f199966c7b2bf15110ce51d96707 Mon Sep 17 00:00:00 2001 From: Marco Dickert Date: Tue, 22 Sep 2020 19:46:13 +0200 Subject: [PATCH] Add pagination Signed-off-by: Marco Dickert --- src/ifm.js | 3 ++- src/main.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ifm.js b/src/ifm.js index 7edf868..abb8134 100644 --- a/src/ifm.js +++ b/src/ifm.js @@ -214,7 +214,8 @@ function IFM(params) { if( self.datatable ) self.datatable.destroy(); self.datatable = $('#filetable').DataTable({ - paging: false, + paging: self.config.pagination, + pageLength: 50, info: false, autoWidth: false, columnDefs: [ diff --git a/src/main.php b/src/main.php index 36d4148..ff57ced 100644 --- a/src/main.php +++ b/src/main.php @@ -43,6 +43,7 @@ class IFM { "zipnload" => 1, "createarchive" => 1, "search" => 1, + "pagination" => 0, // gui controls "showlastmodified" => 0,