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,