Disable paging in DataTables
authorAdam D. Barratt <adam@adam-barratt.org.uk>
Thu, 14 Nov 2019 20:49:09 +0000 (20:49 +0000)
committerAdam D. Barratt <adam@adam-barratt.org.uk>
Thu, 14 Nov 2019 20:49:09 +0000 (20:49 +0000)
This brings the functionality more in line with the previous
incarnation.

The configuration for the paging functionality is left in place to
make it simpler to enable / disable as desired, and potentially
allow users the option at some future point.

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
html/debdb.js

index 936c7c6..b12772a 100644 (file)
@@ -12,6 +12,7 @@ $(document).ready(function() {
 
        var table = $("#machines").DataTable({
                orderCellsTop: true,
+               paging: false,
                pageLength: 25,
                lengthMenu: [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]]
        });