From 02ea26b09002681178e934bc9cd35dce8c48022c Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 8 Jul 2018 13:50:52 +0200 Subject: [PATCH] Disable pagination for data tables --- public/viewjs/batteries.js | 2 +- public/viewjs/batteriesoverview.js | 2 +- public/viewjs/habits.js | 2 +- public/viewjs/habitsoverview.js | 2 +- public/viewjs/locations.js | 2 +- public/viewjs/manageapikeys.js | 2 +- public/viewjs/products.js | 2 +- public/viewjs/quantityunits.js | 2 +- public/viewjs/shoppinglist.js | 2 +- public/viewjs/stockoverview.js | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/public/viewjs/batteries.js b/public/viewjs/batteries.js index 5e16d5c9..019c8b82 100644 --- a/public/viewjs/batteries.js +++ b/public/viewjs/batteries.js @@ -35,7 +35,7 @@ }); $('#batteries-table').DataTable({ - 'pageLength': 50, + 'bPaginate': false, 'order': [[1, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 } diff --git a/public/viewjs/batteriesoverview.js b/public/viewjs/batteriesoverview.js index b11d0970..bccff7a2 100644 --- a/public/viewjs/batteriesoverview.js +++ b/public/viewjs/batteriesoverview.js @@ -1,5 +1,5 @@ $('#batteries-overview-table').DataTable({ - 'pageLength': 50, + 'bPaginate': false, 'order': [[2, 'desc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 } diff --git a/public/viewjs/habits.js b/public/viewjs/habits.js index 2b6b0644..8ad30296 100644 --- a/public/viewjs/habits.js +++ b/public/viewjs/habits.js @@ -35,7 +35,7 @@ }); $('#habits-table').DataTable({ - 'pageLength': 50, + 'bPaginate': false, 'order': [[1, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 } diff --git a/public/viewjs/habitsoverview.js b/public/viewjs/habitsoverview.js index 973295cd..f3830dd9 100644 --- a/public/viewjs/habitsoverview.js +++ b/public/viewjs/habitsoverview.js @@ -1,5 +1,5 @@ $('#habits-overview-table').DataTable({ - 'pageLength': 50, + 'bPaginate': false, 'order': [[2, 'desc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 } diff --git a/public/viewjs/locations.js b/public/viewjs/locations.js index 1f4043ce..b4d1a052 100644 --- a/public/viewjs/locations.js +++ b/public/viewjs/locations.js @@ -35,7 +35,7 @@ }); $('#locations-table').DataTable({ - 'pageLength': 50, + 'bPaginate': false, 'order': [[1, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 } diff --git a/public/viewjs/manageapikeys.js b/public/viewjs/manageapikeys.js index 40bc25a1..2596b308 100644 --- a/public/viewjs/manageapikeys.js +++ b/public/viewjs/manageapikeys.js @@ -35,7 +35,7 @@ }); $('#apikeys-table').DataTable({ - 'pageLength': 50, + 'bPaginate': false, 'order': [[4, 'desc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 } diff --git a/public/viewjs/products.js b/public/viewjs/products.js index 5a2d5477..079317cd 100644 --- a/public/viewjs/products.js +++ b/public/viewjs/products.js @@ -35,7 +35,7 @@ }); $('#products-table').DataTable({ - 'pageLength': 50, + 'bPaginate': false, 'order': [[1, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 } diff --git a/public/viewjs/quantityunits.js b/public/viewjs/quantityunits.js index 44302c2a..fd184141 100644 --- a/public/viewjs/quantityunits.js +++ b/public/viewjs/quantityunits.js @@ -35,7 +35,7 @@ }); $('#quantityunits-table').DataTable({ - 'pageLength': 50, + 'bPaginate': false, 'order': [[1, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 } diff --git a/public/viewjs/shoppinglist.js b/public/viewjs/shoppinglist.js index df92e35f..0fad5b73 100644 --- a/public/viewjs/shoppinglist.js +++ b/public/viewjs/shoppinglist.js @@ -27,7 +27,7 @@ $(document).on('click', '#add-products-below-min-stock-amount', function(e) }); $('#shoppinglist-table').DataTable({ - 'pageLength': 50, + 'bPaginate': false, 'order': [[1, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 } diff --git a/public/viewjs/stockoverview.js b/public/viewjs/stockoverview.js index 3597e769..98c22481 100644 --- a/public/viewjs/stockoverview.js +++ b/public/viewjs/stockoverview.js @@ -1,5 +1,5 @@ $('#stock-overview-table').DataTable({ - 'pageLength': 50, + 'bPaginate': false, 'order': [[3, 'asc']], 'columnDefs': [ { 'orderable': false, 'targets': 0 }