1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-09 17:46:31 +02:00

Add paging

Signed-off-by: Marco Dickert <marco@misterunknown.de>
This commit is contained in:
Marco Dickert
2020-09-22 19:57:48 +02:00
parent 151ef41dc4
commit cfec157071
2 changed files with 3 additions and 2 deletions

View File

@@ -215,7 +215,7 @@ function IFM(params) {
if( self.datatable ) self.datatable.destroy(); if( self.datatable ) self.datatable.destroy();
self.datatable = $('#filetable').DataTable({ self.datatable = $('#filetable').DataTable({
paging: !!self.config.paging, paging: !!self.config.paging,
pageLength: 50, pageLength: self.config.pageLength||50,
info: false, info: false,
autoWidth: false, autoWidth: false,
columnDefs: [ columnDefs: [

View File

@@ -52,7 +52,8 @@ class IFM {
"zipnload" => 1, "zipnload" => 1,
"createarchive" => 1, "createarchive" => 1,
"search" => 1, "search" => 1,
"paging" => 1, "paging" => 0,
"pageLength" => 50,
// gui controls // gui controls
"showlastmodified" => 0, "showlastmodified" => 0,