Disable pagination

This commit is contained in:
Andrea Bedini 2022-11-23 10:28:16 +08:00
parent 04cb2aca07
commit b950969559
2 changed files with 4 additions and 2 deletions

View File

@ -77,7 +77,8 @@
$(document).ready(function () {
const table = $('table').DataTable({
order: [[2, 'desc']],
lengthMenu: [ [50, 100, 500, -1], [50, 100, 500, "All"] ]
lengthMenu: [ [50, 100, 500, -1], [50, 100, 500, "All"] ],
paging: false
})
const urlParams = new URLSearchParams(location.search)
if (urlParams.has('q')) {

View File

@ -72,7 +72,8 @@
$(document).ready(function () {
const table = $('table').DataTable({
order: [[0, 'asc']],
lengthMenu: [ [50, 100, 500, -1], [50, 100, 500, "All"] ]
lengthMenu: [ [50, 100, 500, -1], [50, 100, 500, "All"] ],
paging: false
})
const urlParams = new URLSearchParams(location.search)
if (urlParams.has('q')) {